diff options
| author | Po Lu | 2022-02-07 09:42:08 +0800 |
|---|---|---|
| committer | Po Lu | 2022-02-07 09:42:08 +0800 |
| commit | 011fa3a4cb6407603f3a77511977b9563f3438ba (patch) | |
| tree | 70c413ceb6c1e185efff93bf54b81cc42fed914a /src | |
| parent | 838da4aef8768ff74c419e0ecd6498b9dad24641 (diff) | |
| download | emacs-011fa3a4cb6407603f3a77511977b9563f3438ba.tar.gz emacs-011fa3a4cb6407603f3a77511977b9563f3438ba.zip | |
Correct implementation of extended frame synchronization
* src/xterm.c (handle_one_xevent): Use value provided in the
extended synchronization message as the current counter value.
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 167e3a44d23..d3d8dc468cd 100644 --- a/src/xterm.c +++ b/src/xterm.c | |||
| @@ -9139,7 +9139,11 @@ handle_one_xevent (struct x_display_info *dpyinfo, | |||
| 9139 | FRAME_X_OUTPUT (f)->sync_end_pending_p = true; | 9139 | FRAME_X_OUTPUT (f)->sync_end_pending_p = true; |
| 9140 | } | 9140 | } |
| 9141 | else if (event->xclient.data.l[4] == 1) | 9141 | else if (event->xclient.data.l[4] == 1) |
| 9142 | FRAME_X_OUTPUT (f)->ext_sync_end_pending_p = true; | 9142 | { |
| 9143 | XSyncIntsToValue (&FRAME_X_OUTPUT (f)->current_extended_counter_value, | ||
| 9144 | event->xclient.data.l[2], event->xclient.data.l[3]); | ||
| 9145 | FRAME_X_OUTPUT (f)->ext_sync_end_pending_p = true; | ||
| 9146 | } | ||
| 9143 | 9147 | ||
| 9144 | *finish = X_EVENT_DROP; | 9148 | *finish = X_EVENT_DROP; |
| 9145 | goto done; | 9149 | goto done; |