diff options
| author | Po Lu | 2022-06-09 18:20:59 +0800 |
|---|---|---|
| committer | Po Lu | 2022-06-09 18:21:16 +0800 |
| commit | e563020eea738febed38194d9b0984473c852f3f (patch) | |
| tree | 82903da30d67a0f0b139573990a8fad78037980e /src | |
| parent | 521de5ab626948044f2478245677cd0b801110d9 (diff) | |
| download | emacs-e563020eea738febed38194d9b0984473c852f3f.tar.gz emacs-e563020eea738febed38194d9b0984473c852f3f.zip | |
Handle monitor attribute updates during drag-and-drop
* src/xterm.c (x_monitors_changed_cb):
(handle_one_xevent): Set x_dnd_monitors during monitor changes.
Diffstat (limited to 'src')
| -rw-r--r-- | src/xterm.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/xterm.c b/src/xterm.c index 557555e7a4d..f0cd5e9c8b8 100644 --- a/src/xterm.c +++ b/src/xterm.c | |||
| @@ -15626,6 +15626,9 @@ x_monitors_changed_cb (GdkScreen *gscr, gpointer user_data) | |||
| 15626 | } | 15626 | } |
| 15627 | 15627 | ||
| 15628 | dpyinfo->last_monitor_attributes_list = current_monitors; | 15628 | dpyinfo->last_monitor_attributes_list = current_monitors; |
| 15629 | |||
| 15630 | if (x_dnd_in_progress && x_dnd_update_tooltip) | ||
| 15631 | x_dnd_monitors = current_monitors; | ||
| 15629 | } | 15632 | } |
| 15630 | #endif | 15633 | #endif |
| 15631 | 15634 | ||
| @@ -21409,6 +21412,9 @@ handle_one_xevent (struct x_display_info *dpyinfo, | |||
| 21409 | inev.ie.kind = NO_EVENT; | 21412 | inev.ie.kind = NO_EVENT; |
| 21410 | 21413 | ||
| 21411 | dpyinfo->last_monitor_attributes_list = current_monitors; | 21414 | dpyinfo->last_monitor_attributes_list = current_monitors; |
| 21415 | |||
| 21416 | if (x_dnd_in_progress && x_dnd_update_tooltip) | ||
| 21417 | x_dnd_monitors = current_monitors; | ||
| 21412 | } | 21418 | } |
| 21413 | #endif | 21419 | #endif |
| 21414 | OTHER: | 21420 | OTHER: |