summaryrefslogtreecommitdiff
path: root/src/xterm.c
diff options
context:
space:
mode:
authorPo Lu <luangruo@yahoo.com>2022-03-10 09:12:59 +0800
committerPo Lu <luangruo@yahoo.com>2022-03-10 09:13:08 +0800
commit70d63ead212b7ca1e561b869d44fddb14d0445af (patch)
tree629ae71e2641c4c166b26df0f4be48c272f10616 /src/xterm.c
parent2353893bd04bfee7c7659a758cf7c5072121a90c (diff)
downloademacs-70d63ead212b7ca1e561b869d44fddb14d0445af.tar.gz
Fix menu bar event detection on XI2 builds using Core Input
* src/gtkutil.c (xg_get_gdk_scale): Always return 1 on GTK+ 2. (xg_event_is_for_menubar): Fix some ifdefs. * src/xterm.c (handle_one_xevent): Update a comment.
Diffstat (limited to 'src/xterm.c')
-rw-r--r--src/xterm.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/xterm.c b/src/xterm.c
index 68f7588af4a..0d77ea0c198 100644
--- a/src/xterm.c
+++ b/src/xterm.c
@@ -11652,11 +11652,10 @@ handle_one_xevent (struct x_display_info *dpyinfo,
#if defined (USE_X_TOOLKIT) || defined (USE_GTK)
f = x_menubar_window_to_frame (dpyinfo, event);
- /* For a down-event in the menu bar,
- don't pass it to Xt right now.
- Instead, save it away
- and we will pass it to Xt from kbd_buffer_get_event.
- That way, we can run some Lisp code first. */
+ /* For a down-event in the menu bar, don't pass it to Xt or
+ GTK right away. Instead, save it and pass it to Xt or GTK
+ from kbd_buffer_get_event. That way, we can run some Lisp
+ code first. */
if (! popup_activated ()
#ifdef USE_GTK
/* Gtk+ menus only react to the first three buttons. */