]> git.eshelyaron.com Git - emacs.git/commit
Fix entry and exit events with XI2 grabs on X toolkit menus
authorPo Lu <luangruo@yahoo.com>
Sat, 12 Feb 2022 12:25:00 +0000 (20:25 +0800)
committerPo Lu <luangruo@yahoo.com>
Sat, 12 Feb 2022 12:28:20 +0000 (20:28 +0800)
commitbe06b40ebdd6cfbd23558ce210a8a7ad2b4c7a40
treed9e39c9ee8ff639dc65ee7df0af9aaf3ebe1ba65
parente2f9c27f9ac880aa321c3467c67a6c7394576781
Fix entry and exit events with XI2 grabs on X toolkit menus

* src/xmenu.c (popup_get_selection): Only claim cookie if new
event will be generated.
(create_and_show_popup_menu): Ungrab XI2 device, then
immediately set core grab on the frame's edit widget window.

* src/xterm.c (handle_one_xevent): Use x_any_window_to_frame to
find exit event frame if a popup menu is active.
src/xmenu.c
src/xterm.c