]> git.eshelyaron.com Git - emacs.git/commit
Fix Motif menu and menu bar dismissal on XI2
authorPo Lu <luangruo@yahoo.com>
Sun, 27 Feb 2022 02:37:17 +0000 (10:37 +0800)
committerPo Lu <luangruo@yahoo.com>
Sun, 27 Feb 2022 02:37:43 +0000 (10:37 +0800)
commit16702f183f34cba880a04e08db9d6b644b38b424
treeeb207e70aaeeae2d49bf2d31256c252e51c144ff
parenta2768c2f745eb4203a006ad86d6cccd160c7a3c8
Fix Motif menu and menu bar dismissal on XI2

* src/xmenu.c (x_activate_menubar): Improve ungrabbing logic on
XI2.
(server_timestamp_predicate): New function.
(create_and_show_popup_menu): If the display supports XI2, make
sure the timestamps are correct by dispatching a PropertyNotify
event to Xt.
* src/xterm.c (handle_one_xevent): Translate XI_ButtonRelease
events into core events before dispatching them to Xt.
src/xmenu.c
src/xterm.c