From: Po Lu Date: Thu, 28 Jul 2022 02:59:19 +0000 (+0800) Subject: * src/xterm.c (x_set_offset): Respect x-no-window-manager. X-Git-Tag: archive/raspbian/1%29.2+1-2+rpi1^2~5^2~16^2~1886^2~710 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=c44068ac6c6f31a3b64ad19841d7f0385f624dae;p=emacs.git * src/xterm.c (x_set_offset): Respect x-no-window-manager. --- diff --git a/src/xterm.c b/src/xterm.c index 7b4a65e87f0..e7222d35b3a 100644 --- a/src/xterm.c +++ b/src/xterm.c @@ -24322,7 +24322,11 @@ x_set_offset (struct frame *f, int xoff, int yoff, int change_gravity) #endif /* 'x_sync_with_move' is too costly for dragging child frames. */ - if (!FRAME_PARENT_FRAME (f)) + if (!FRAME_PARENT_FRAME (f) + /* If no window manager exists, just calling XSync will be + sufficient to ensure that the window geometry has been + updated. */ + && NILP (Vx_no_window_manager)) { x_sync_with_move (f, f->left_pos, f->top_pos, FRAME_DISPLAY_INFO (f)->wm_type == X_WMTYPE_UNKNOWN);