[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
master 5c07aed894: Fix x_dnd_movement_frame detection on GTK builds
From: |
Po Lu |
Subject: |
master 5c07aed894: Fix x_dnd_movement_frame detection on GTK builds |
Date: |
Fri, 27 May 2022 20:55:48 -0400 (EDT) |
branch: master
commit 5c07aed894f9822560eabc607674b22aaaaf4780
Author: Po Lu <luangruo@yahoo.com>
Commit: Po Lu <luangruo@yahoo.com>
Fix x_dnd_movement_frame detection on GTK builds
* src/xterm.c (x_dnd_begin_drag_and_drop): Make sure movement
frame is on the correct display.
---
src/xterm.c | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/src/xterm.c b/src/xterm.c
index efa153efca..756f030811 100644
--- a/src/xterm.c
+++ b/src/xterm.c
@@ -10637,7 +10637,11 @@ x_dnd_begin_drag_and_drop (struct frame *f, Time time,
Atom xaction,
if (event_display == FRAME_DISPLAY_INFO (f))
{
#endif
- if (x_dnd_movement_frame)
+ if (x_dnd_movement_frame
+ /* FIXME: how come this can end up with movement frames
+ from other displays on GTK builds? */
+ && (FRAME_X_DISPLAY (x_dnd_movement_frame)
+ == FRAME_X_DISPLAY (f)))
{
XSETFRAME (frame_object, x_dnd_movement_frame);
XSETINT (x, x_dnd_movement_x);
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- master 5c07aed894: Fix x_dnd_movement_frame detection on GTK builds,
Po Lu <=