From c44068ac6c6f31a3b64ad19841d7f0385f624dae Mon Sep 17 00:00:00 2001 From: Po Lu Date: Thu, 28 Jul 2022 10:59:19 +0800 Subject: [PATCH] * src/xterm.c (x_set_offset): Respect x-no-window-manager. --- src/xterm.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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); -- 2.39.2