]> git.eshelyaron.com Git - emacs.git/commit
Make responding to selection requests work inside popups
authorPo Lu <luangruo@yahoo.com>
Wed, 8 Jun 2022 07:08:09 +0000 (15:08 +0800)
committerPo Lu <luangruo@yahoo.com>
Wed, 8 Jun 2022 07:08:27 +0000 (15:08 +0800)
commit22d3f0e95a5602b2bde763cff185f5b4fed6e53e
tree1a20706bfe3ad7228209ad2ed783753534caac5e
parent90f3da0ccdb4c58265e9f8c3d9465198d8a2092a
Make responding to selection requests work inside popups

* src/xfns.c (Fx_file_dialog):
* src/xmenu.c (x_menu_wait_for_event, create_and_show_popup_menu)
(create_and_show_dialog, x_menu_show): Defer selection requests.
* src/xselect.c (x_get_foreign_selection)
(x_handle_selection_notify): Add some more info to selection
trace.

* src/xterm.c (x_defer_selection_requests): Make non-static.
(x_release_selection_requests_and_flush): New function.
(x_dnd_begin_drag_and_drop): Use DEFER_SELECTIONS instead.
(x_wait_for_cell_change): Fix initial value of rc for pushed
back events.
(handle_one_xevent): Allow GTK to respond to selections in its
windows too.

* src/xterm.h (DEFER_SELECTIONS): New slug of code.
src/xfns.c
src/xmenu.c
src/xselect.c
src/xterm.c
src/xterm.h