1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-04-29 09:43:56 -07:00

Remove excessive synchronization from x_sync_with_move

* src/xterm.c (x_sync_with_move): Remove redundant XSync.  The X
server always handles requests in order.
This commit is contained in:
Po Lu 2022-07-28 09:25:37 +08:00
parent 9ad5421a62
commit f720630195

View file

@ -25055,11 +25055,9 @@ x_sync_with_move (struct frame *f, int left, int top, bool fuzzy)
current_left = 0;
current_top = 0;
/* In theory, this call to XSync only needs to happen once, but in
practice, it doesn't seem to work, hence the need for the surrounding
loop. */
XSync (FRAME_X_DISPLAY (f), False);
/* There is no need to call XSync (even when no window manager
is present) because x_real_positions already does that
implicitly. */
x_real_positions (f, &current_left, &current_top);
if (fuzzy)