aboutsummaryrefslogtreecommitdiffstats
path: root/src/xterm.c
diff options
context:
space:
mode:
authorPo Lu2022-08-03 09:28:44 +0800
committerPo Lu2022-08-03 09:28:44 +0800
commitfdbe3362c5a72be7d4c930a614fe5853bf6eff1f (patch)
tree9e9b29d453ca07428a3e221edcc13bd3f6cb69a9 /src/xterm.c
parent72c7ee2e525d87b58a28aea8af8cef31f607d7c0 (diff)
downloademacs-fdbe3362c5a72be7d4c930a614fe5853bf6eff1f.tar.gz
emacs-fdbe3362c5a72be7d4c930a614fe5853bf6eff1f.zip
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.
Diffstat (limited to 'src/xterm.c')
-rw-r--r--src/xterm.c18
1 files changed, 0 insertions, 18 deletions
diff --git a/src/xterm.c b/src/xterm.c
index 52d08e76a72..2455b205bdd 100644
--- a/src/xterm.c
+++ b/src/xterm.c
@@ -4960,15 +4960,6 @@ x_xr_ensure_picture (struct frame *f)
4960} 4960}
4961#endif 4961#endif
4962 4962
4963/* Remove calls to XFlush by defining XFlush to an empty replacement.
4964 Calls to XFlush should be unnecessary because the X output buffer
4965 is flushed automatically as needed by calls to XPending,
4966 XNextEvent, or XWindowEvent according to the XFlush man page.
4967 XTread_socket calls XPending. Removing XFlush improves
4968 performance. */
4969
4970#define XFlush(DISPLAY) (void) 0
4971
4972 4963
4973/*********************************************************************** 4964/***********************************************************************
4974 Debugging 4965 Debugging
@@ -10464,16 +10455,12 @@ x_clear_frame (struct frame *f)
10464 mark_window_cursors_off (XWINDOW (FRAME_ROOT_WINDOW (f))); 10455 mark_window_cursors_off (XWINDOW (FRAME_ROOT_WINDOW (f)));
10465 10456
10466 block_input (); 10457 block_input ();
10467
10468 font_drop_xrender_surfaces (f); 10458 font_drop_xrender_surfaces (f);
10469 x_clear_window (f); 10459 x_clear_window (f);
10470 10460
10471 /* We have to clear the scroll bars. If we have changed colors or 10461 /* We have to clear the scroll bars. If we have changed colors or
10472 something like that, then they should be notified. */ 10462 something like that, then they should be notified. */
10473 x_scroll_bar_clear (f); 10463 x_scroll_bar_clear (f);
10474
10475 XFlush (FRAME_X_DISPLAY (f));
10476
10477 unblock_input (); 10464 unblock_input ();
10478} 10465}
10479 10466
@@ -10851,7 +10838,6 @@ x_scroll_run (struct window *w, struct run *run)
10851 view->clip_bottom - view->clip_top); 10838 view->clip_bottom - view->clip_top);
10852 } 10839 }
10853 xwidget_expose (view); 10840 xwidget_expose (view);
10854 XFlush (dpy);
10855 } 10841 }
10856 } 10842 }
10857 } 10843 }
@@ -23157,8 +23143,6 @@ x_draw_window_cursor (struct window *w, struct glyph_row *glyph_row, int x,
23157 xic_set_preeditarea (w, x, y); 23143 xic_set_preeditarea (w, x, y);
23158#endif 23144#endif
23159 } 23145 }
23160
23161 XFlush (FRAME_X_DISPLAY (f));
23162} 23146}
23163 23147
23164 23148
@@ -26216,8 +26200,6 @@ x_free_frame_resources (struct frame *f)
26216 XFreeCursor (FRAME_X_DISPLAY (f), f->output_data.x->bottom_edge_cursor); 26200 XFreeCursor (FRAME_X_DISPLAY (f), f->output_data.x->bottom_edge_cursor);
26217 if (f->output_data.x->bottom_left_corner_cursor != 0) 26201 if (f->output_data.x->bottom_left_corner_cursor != 0)
26218 XFreeCursor (FRAME_X_DISPLAY (f), f->output_data.x->bottom_left_corner_cursor); 26202 XFreeCursor (FRAME_X_DISPLAY (f), f->output_data.x->bottom_left_corner_cursor);
26219
26220 XFlush (FRAME_X_DISPLAY (f));
26221 } 26203 }
26222 26204
26223#ifdef HAVE_GTK3 26205#ifdef HAVE_GTK3