diff options
| author | Po Lu | 2022-07-09 16:18:35 +0800 |
|---|---|---|
| committer | Po Lu | 2022-07-09 16:18:35 +0800 |
| commit | bab449f034f44657ff3ed1bf533be6a27f4dafd6 (patch) | |
| tree | 107dfc478b04d3ba772f8ef36a4670846b2bebd9 /src/xterm.h | |
| parent | edabfe4ff66090b3b2c433962df4cfe1a68259fd (diff) | |
| download | emacs-bab449f034f44657ff3ed1bf533be6a27f4dafd6.tar.gz emacs-bab449f034f44657ff3ed1bf533be6a27f4dafd6.zip | |
Improve drag-and-drop emulation time handling
* src/xselect.c (x_handle_selection_request): Use
display-specific pending DND time.
(x_set_pending_dnd_time): Delete function.
* src/xterm.c (x_dnd_do_unsupported_drop, handle_one_xevent):
Set dpyinfo->pending_dnd_time instead.
* src/xterm.h (struct x_display_info): New field
`pending_dnd_time'. Make handling pending drops
display-specific to avoid interference when there are multiple
displays.
Diffstat (limited to 'src/xterm.h')
| -rw-r--r-- | src/xterm.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/xterm.h b/src/xterm.h index 6684d7839f3..92e88bb50fa 100644 --- a/src/xterm.h +++ b/src/xterm.h | |||
| @@ -765,6 +765,10 @@ struct x_display_info | |||
| 765 | 765 | ||
| 766 | /* Pointer to the next request in `failable_requests'. */ | 766 | /* Pointer to the next request in `failable_requests'. */ |
| 767 | struct x_failable_request *next_failable_request; | 767 | struct x_failable_request *next_failable_request; |
| 768 | |||
| 769 | /* The pending drag-and-drop time for middle-click based | ||
| 770 | drag-and-drop emulation. */ | ||
| 771 | Time pending_dnd_time; | ||
| 768 | }; | 772 | }; |
| 769 | 773 | ||
| 770 | #ifdef HAVE_X_I18N | 774 | #ifdef HAVE_X_I18N |
| @@ -1617,7 +1621,6 @@ extern void x_clipboard_manager_save_all (void); | |||
| 1617 | 1621 | ||
| 1618 | extern Lisp_Object x_timestamp_for_selection (struct x_display_info *, | 1622 | extern Lisp_Object x_timestamp_for_selection (struct x_display_info *, |
| 1619 | Lisp_Object); | 1623 | Lisp_Object); |
| 1620 | extern void x_set_pending_dnd_time (Time); | ||
| 1621 | extern void x_own_selection (Lisp_Object, Lisp_Object, Lisp_Object, | 1624 | extern void x_own_selection (Lisp_Object, Lisp_Object, Lisp_Object, |
| 1622 | Lisp_Object, Time); | 1625 | Lisp_Object, Time); |
| 1623 | extern Atom x_intern_cached_atom (struct x_display_info *, const char *, | 1626 | extern Atom x_intern_cached_atom (struct x_display_info *, const char *, |