emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

master 9e0f52b7d9: Ensure correct position is returned after child frame


From: Po Lu
Subject: master 9e0f52b7d9: Ensure correct position is returned after child frame movement
Date: Fri, 8 Jul 2022 09:16:34 -0400 (EDT)

branch: master
commit 9e0f52b7d941d55b658d39d452d84652026bdb84
Author: Po Lu <luangruo@yahoo.com>
Commit: Po Lu <luangruo@yahoo.com>

    Ensure correct position is returned after child frame movement
    
    * src/xterm.c (x_set_offset): Synchronize child frame movement
    correctly.
---
 src/xterm.c | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/src/xterm.c b/src/xterm.c
index 9651c4e119..23a784ade8 100644
--- a/src/xterm.c
+++ b/src/xterm.c
@@ -24067,6 +24067,11 @@ x_set_offset (struct frame *f, int xoff, int yoff, int 
change_gravity)
                      && FRAME_X_OUTPUT (f)->move_offset_top == 0))))
        x_check_expected_move (f, modified_left, modified_top);
     }
+  /* Instead, just wait for the last ConfigureWindow request to
+     complete.  No window manager is involved when moving child
+     frames.  */
+  else
+    XSync (FRAME_X_DISPLAY (f), False);
 
   unblock_input ();
 }
@@ -24769,7 +24774,6 @@ x_sync_with_move (struct frame *f, int left, int top, 
bool fuzzy)
     wait_reading_process_output (0, 500000000, 0, false, Qnil, NULL, 0);
 }
 
-
 /* Wait for an event on frame F matching EVENTTYPE.  */
 void
 x_wait_for_event (struct frame *f, int eventtype)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]