diff options
| author | Po Lu | 2022-07-08 21:16:15 +0800 |
|---|---|---|
| committer | Po Lu | 2022-07-08 21:16:25 +0800 |
| commit | 9e0f52b7d941d55b658d39d452d84652026bdb84 (patch) | |
| tree | dbb816c2cba1c921a94bbf8c809f47161d37b8f8 /src | |
| parent | 6791165b2a0e707f719efec08aad62cdf6ed8ad3 (diff) | |
| download | emacs-9e0f52b7d941d55b658d39d452d84652026bdb84.tar.gz emacs-9e0f52b7d941d55b658d39d452d84652026bdb84.zip | |
Ensure correct position is returned after child frame movement
* src/xterm.c (x_set_offset): Synchronize child frame movement
correctly.
Diffstat (limited to 'src')
| -rw-r--r-- | src/xterm.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/xterm.c b/src/xterm.c index 9651c4e119e..23a784ade89 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) | |||
| 24067 | && FRAME_X_OUTPUT (f)->move_offset_top == 0)))) | 24067 | && FRAME_X_OUTPUT (f)->move_offset_top == 0)))) |
| 24068 | x_check_expected_move (f, modified_left, modified_top); | 24068 | x_check_expected_move (f, modified_left, modified_top); |
| 24069 | } | 24069 | } |
| 24070 | /* Instead, just wait for the last ConfigureWindow request to | ||
| 24071 | complete. No window manager is involved when moving child | ||
| 24072 | frames. */ | ||
| 24073 | else | ||
| 24074 | XSync (FRAME_X_DISPLAY (f), False); | ||
| 24070 | 24075 | ||
| 24071 | unblock_input (); | 24076 | unblock_input (); |
| 24072 | } | 24077 | } |
| @@ -24769,7 +24774,6 @@ x_sync_with_move (struct frame *f, int left, int top, bool fuzzy) | |||
| 24769 | wait_reading_process_output (0, 500000000, 0, false, Qnil, NULL, 0); | 24774 | wait_reading_process_output (0, 500000000, 0, false, Qnil, NULL, 0); |
| 24770 | } | 24775 | } |
| 24771 | 24776 | ||
| 24772 | |||
| 24773 | /* Wait for an event on frame F matching EVENTTYPE. */ | 24777 | /* Wait for an event on frame F matching EVENTTYPE. */ |
| 24774 | void | 24778 | void |
| 24775 | x_wait_for_event (struct frame *f, int eventtype) | 24779 | x_wait_for_event (struct frame *f, int eventtype) |