]> git.eshelyaron.com Git - emacs.git/commit
Make menus work better on X toolkit builds with XInput 2
authorPo Lu <luangruo@yahoo.com>
Mon, 7 Feb 2022 08:22:06 +0000 (16:22 +0800)
committerPo Lu <luangruo@yahoo.com>
Mon, 7 Feb 2022 09:15:53 +0000 (17:15 +0800)
commitb432fb6c86b922bf1e8bfa8ae59e0dc80cb37eb0
treeebabf964e58c30ac3fd33fe35275b2121a3ef559
parentdfda7d14631c0c2225317b1c2e0317e2f1ba2630
Make menus work better on X toolkit builds with XInput 2

* src/xmenu.c (popup_get_selection): Translate some important
XI2 events into events the toolkit can understand.
(x_activate_menubar):
(create_and_show_popup_menu): Clear grab regardless of reported
status on Motif.
* src/xterm.c (xi_device_from_id): Export function.
* src/xterm.h: Update prototypes.
src/xmenu.c
src/xterm.c
src/xterm.h