diff options
| author | Po Lu | 2022-06-10 08:58:51 +0800 |
|---|---|---|
| committer | Po Lu | 2022-06-10 08:58:51 +0800 |
| commit | 0e2f94ded0193f8d4eece158e865e21e35aa7aff (patch) | |
| tree | f6ddd7052c211aa91cb1bf7f5fcb939885c8fa8e /src | |
| parent | 8ef3862fa0d1aa987d67ec42acf3611a42e2a0fb (diff) | |
| download | emacs-0e2f94ded0193f8d4eece158e865e21e35aa7aff.tar.gz emacs-0e2f94ded0193f8d4eece158e865e21e35aa7aff.zip | |
Fix DND tooltip handling with tooltip-reuse-hidden-frame
* src/xterm.c (x_dnd_update_tooltip_position): Don't move window
if tip_f is not visible.
Diffstat (limited to 'src')
| -rw-r--r-- | src/xterm.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/xterm.c b/src/xterm.c index f0cd5e9c8b8..77dea3ad4d1 100644 --- a/src/xterm.c +++ b/src/xterm.c | |||
| @@ -15239,6 +15239,7 @@ x_dnd_update_tooltip_position (int root_x, int root_y) | |||
| 15239 | tip_f = XFRAME (tip_frame); | 15239 | tip_f = XFRAME (tip_frame); |
| 15240 | 15240 | ||
| 15241 | if (!FRAME_LIVE_P (tip_f) | 15241 | if (!FRAME_LIVE_P (tip_f) |
| 15242 | || !FRAME_VISIBLE_P (tip_f) | ||
| 15242 | || (FRAME_X_DISPLAY (tip_f) | 15243 | || (FRAME_X_DISPLAY (tip_f) |
| 15243 | != FRAME_X_DISPLAY (x_dnd_frame))) | 15244 | != FRAME_X_DISPLAY (x_dnd_frame))) |
| 15244 | return; | 15245 | return; |