emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

master fdbe3362c5: Fix window iconification, raising and lowering frames


From: Po Lu
Subject: master fdbe3362c5: Fix window iconification, raising and lowering frames, etc
Date: Tue, 2 Aug 2022 21:28:58 -0400 (EDT)

branch: master
commit fdbe3362c5a72be7d4c930a614fe5853bf6eff1f
Author: Po Lu <luangruo@yahoo.com>
Commit: Po Lu <luangruo@yahoo.com>

    Fix window iconification, raising and lowering frames, etc
    
    * src/xterm.c (XFlush): Remove define to 0.
    (x_clear_frame, x_scroll_run, x_draw_window_cursor)
    (x_free_frame_resources): Remove calls to XFlush where it is not
    really necessary.  Leave the calls that actually are intact.
---
 src/xterm.c | 18 ------------------
 1 file changed, 18 deletions(-)

diff --git a/src/xterm.c b/src/xterm.c
index 52d08e76a7..2455b205bd 100644
--- a/src/xterm.c
+++ b/src/xterm.c
@@ -4960,15 +4960,6 @@ x_xr_ensure_picture (struct frame *f)
 }
 #endif
 
-/* Remove calls to XFlush by defining XFlush to an empty replacement.
-   Calls to XFlush should be unnecessary because the X output buffer
-   is flushed automatically as needed by calls to XPending,
-   XNextEvent, or XWindowEvent according to the XFlush man page.
-   XTread_socket calls XPending.  Removing XFlush improves
-   performance.  */
-
-#define XFlush(DISPLAY)        (void) 0
-
 
 /***********************************************************************
                              Debugging
@@ -10464,16 +10455,12 @@ x_clear_frame (struct frame *f)
   mark_window_cursors_off (XWINDOW (FRAME_ROOT_WINDOW (f)));
 
   block_input ();
-
   font_drop_xrender_surfaces (f);
   x_clear_window (f);
 
   /* We have to clear the scroll bars.  If we have changed colors or
      something like that, then they should be notified.  */
   x_scroll_bar_clear (f);
-
-  XFlush (FRAME_X_DISPLAY (f));
-
   unblock_input ();
 }
 
@@ -10851,7 +10838,6 @@ x_scroll_run (struct window *w, struct run *run)
                                                   view->clip_bottom - 
view->clip_top);
                    }
                  xwidget_expose (view);
-                 XFlush (dpy);
                }
             }
        }
@@ -23157,8 +23143,6 @@ x_draw_window_cursor (struct window *w, struct 
glyph_row *glyph_row, int x,
        xic_set_preeditarea (w, x, y);
 #endif
     }
-
-  XFlush (FRAME_X_DISPLAY (f));
 }
 
 
@@ -26216,8 +26200,6 @@ x_free_frame_resources (struct frame *f)
        XFreeCursor (FRAME_X_DISPLAY (f), f->output_data.x->bottom_edge_cursor);
       if (f->output_data.x->bottom_left_corner_cursor != 0)
        XFreeCursor (FRAME_X_DISPLAY (f), 
f->output_data.x->bottom_left_corner_cursor);
-
-      XFlush (FRAME_X_DISPLAY (f));
     }
 
 #ifdef HAVE_GTK3



reply via email to

[Prev in Thread] Current Thread [Next in Thread]