diff options
| author | Po Lu | 2022-06-08 13:03:57 +0800 |
|---|---|---|
| committer | Po Lu | 2022-06-08 13:03:57 +0800 |
| commit | 90f3da0ccdb4c58265e9f8c3d9465198d8a2092a (patch) | |
| tree | 877048fb8facdefb531fd7da8d0f9e609ec30b24 /src | |
| parent | d1c619372099ba123b7aa485907ed71ec961e9fe (diff) | |
| download | emacs-90f3da0ccdb4c58265e9f8c3d9465198d8a2092a.tar.gz emacs-90f3da0ccdb4c58265e9f8c3d9465198d8a2092a.zip | |
Fix quitting in one go out of `mouse-drag-and-drop-region'
* src/xterm.c (x_dnd_begin_drag_and_drop): Make sure
handle_interrupt is called inside the nested event loop upon a
quit event.
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 f42f7cb1eb5..444adcf94f1 100644 --- a/src/xterm.c +++ b/src/xterm.c | |||
| @@ -11116,6 +11116,12 @@ x_dnd_begin_drag_and_drop (struct frame *f, Time time, Atom xaction, | |||
| 11116 | if (x_dnd_motif_setup_p) | 11116 | if (x_dnd_motif_setup_p) |
| 11117 | XDeleteProperty (FRAME_X_DISPLAY (f), FRAME_X_WINDOW (f), | 11117 | XDeleteProperty (FRAME_X_DISPLAY (f), FRAME_X_WINDOW (f), |
| 11118 | FRAME_DISPLAY_INFO (f)->Xatom_XdndSelection); | 11118 | FRAME_DISPLAY_INFO (f)->Xatom_XdndSelection); |
| 11119 | |||
| 11120 | /* Call kbd_buffer_store event, which calls | ||
| 11121 | handle_interrupt and sets `last-event-frame' along | ||
| 11122 | with various other things. */ | ||
| 11123 | kbd_buffer_store_event (&hold_quit); | ||
| 11124 | /* Now quit anyway. */ | ||
| 11119 | quit (); | 11125 | quit (); |
| 11120 | } | 11126 | } |
| 11121 | 11127 | ||