aboutsummaryrefslogtreecommitdiffstats
path: root/src/xterm.c
diff options
context:
space:
mode:
authorJan Djärv2008-05-13 08:13:24 +0000
committerJan Djärv2008-05-13 08:13:24 +0000
commitbb16531656a1daf7deec8a14e3a8a5fdb2c87818 (patch)
treea06cfeaf1b66495bc6a08012ee9ce60abfd7e822 /src/xterm.c
parent1937f3dc3d3d085a4cb9ad2f1c14e4ca1fbfa788 (diff)
downloademacs-bb16531656a1daf7deec8a14e3a8a5fdb2c87818.tar.gz
emacs-bb16531656a1daf7deec8a14e3a8a5fdb2c87818.zip
(handle_one_xevent): Don't pass buttons higher than 3
to Gtk+ menus.
Diffstat (limited to 'src/xterm.c')
-rw-r--r--src/xterm.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/xterm.c b/src/xterm.c
index 3b625b0d662..89cf06c05e0 100644
--- a/src/xterm.c
+++ b/src/xterm.c
@@ -6848,6 +6848,8 @@ handle_one_xevent (dpyinfo, eventp, finish, hold_quit)
6848 if ( 6848 if (
6849#ifdef USE_GTK 6849#ifdef USE_GTK
6850 ! popup_activated () 6850 ! popup_activated ()
6851 /* Gtk+ menus only react to the first three buttons. */
6852 && event.xbutton.button < 3
6851 && 6853 &&
6852#endif 6854#endif
6853 f && event.type == ButtonPress 6855 f && event.type == ButtonPress