aboutsummaryrefslogtreecommitdiffstats
path: root/src/xterm.h
diff options
context:
space:
mode:
authorKen Raeburn2015-10-07 06:04:01 -0400
committerKen Raeburn2015-10-11 01:15:08 -0400
commit5504ede9518053e619b2cc4bb01ce6eff254d3c8 (patch)
tree86e3fb272f4f27d8847291256c71bd5e30e06bfc /src/xterm.h
parent54e3734a322aca9d396e4c7b0e73f08ac6c12501 (diff)
downloademacs-5504ede9518053e619b2cc4bb01ce6eff254d3c8.tar.gz
emacs-5504ede9518053e619b2cc4bb01ce6eff254d3c8.zip
Introduce x_uncatch_errors_after_check to reduce XSync calls.
Both x_had_errors_p and x_check_errors call XSync, so if they're immediately followed by x_uncatch_errors, its XSync call will be redundant, resulting in a wasted round trip to the X server. * src/xterm.c (x_uncatch_errors_after_check): New routine; a copy of x_uncatch_errors without the XSync call. (XTmouse_position, x_wm_supports): * src/xfns.c (x_set_mouse_color): * src/xmenu.c (Fx_menu_bar_open_internal): * src/xselect.c (x_own_selection, x_get_foreign_selection): (Fx_get_atom_name): Call it instead of x_uncatch_errors. * src/xterm.h (x_uncatch_errors_after_check): Declare.
Diffstat (limited to 'src/xterm.h')
-rw-r--r--src/xterm.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/xterm.h b/src/xterm.h
index d8edbc208f4..fe3455ff7ce 100644
--- a/src/xterm.h
+++ b/src/xterm.h
@@ -1030,6 +1030,7 @@ extern void x_check_errors (Display *, const char *)
1030 ATTRIBUTE_FORMAT_PRINTF (2, 0); 1030 ATTRIBUTE_FORMAT_PRINTF (2, 0);
1031extern bool x_had_errors_p (Display *); 1031extern bool x_had_errors_p (Display *);
1032extern void x_uncatch_errors (void); 1032extern void x_uncatch_errors (void);
1033extern void x_uncatch_errors_after_check (void);
1033extern void x_clear_errors (Display *); 1034extern void x_clear_errors (Display *);
1034extern void xembed_request_focus (struct frame *); 1035extern void xembed_request_focus (struct frame *);
1035extern void x_ewmh_activate_frame (struct frame *); 1036extern void x_ewmh_activate_frame (struct frame *);