diff options
| author | Po Lu | 2022-03-23 11:14:13 +0800 |
|---|---|---|
| committer | Po Lu | 2022-03-23 11:14:28 +0800 |
| commit | 021dbdb1287de0f5502eac00fee8d43b8d22db55 (patch) | |
| tree | 3ed64112f99270c0a9987dee78a3bad1f2a79e41 /src | |
| parent | bd2734f0b6b4342f02ce18b5a950a41c3fa35a29 (diff) | |
| download | emacs-021dbdb1287de0f5502eac00fee8d43b8d22db55.tar.gz emacs-021dbdb1287de0f5502eac00fee8d43b8d22db55.zip | |
* src/xterm.c (x_dnd_begin_drag_and_drop): Fix test against DND frame.
Diffstat (limited to 'src')
| -rw-r--r-- | src/xterm.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/xterm.c b/src/xterm.c index 3d0d8264092..e4c17644e42 100644 --- a/src/xterm.c +++ b/src/xterm.c | |||
| @@ -6949,8 +6949,8 @@ x_dnd_begin_drag_and_drop (struct frame *f, Time time, Atom xaction, | |||
| 6949 | int finish; | 6949 | int finish; |
| 6950 | #endif | 6950 | #endif |
| 6951 | XWindowAttributes root_window_attrs; | 6951 | XWindowAttributes root_window_attrs; |
| 6952 | |||
| 6953 | struct input_event hold_quit; | 6952 | struct input_event hold_quit; |
| 6953 | struct frame *any; | ||
| 6954 | char *atom_name; | 6954 | char *atom_name; |
| 6955 | Lisp_Object action, ltimestamp; | 6955 | Lisp_Object action, ltimestamp; |
| 6956 | specpdl_ref ref; | 6956 | specpdl_ref ref; |
| @@ -7110,8 +7110,9 @@ x_dnd_begin_drag_and_drop (struct frame *f, Time time, Atom xaction, | |||
| 7110 | loop, so when dragging items to itself, always return | 7110 | loop, so when dragging items to itself, always return |
| 7111 | XdndActionPrivate. */ | 7111 | XdndActionPrivate. */ |
| 7112 | if (x_dnd_end_window != None | 7112 | if (x_dnd_end_window != None |
| 7113 | && (x_any_window_to_frame (FRAME_DISPLAY_INFO (f), | 7113 | && (any = x_any_window_to_frame (FRAME_DISPLAY_INFO (f), |
| 7114 | x_dnd_end_window) != f)) | 7114 | x_dnd_end_window)) |
| 7115 | && (any != f)) | ||
| 7115 | return QXdndActionPrivate; | 7116 | return QXdndActionPrivate; |
| 7116 | 7117 | ||
| 7117 | if (x_dnd_action != None) | 7118 | if (x_dnd_action != None) |