changeset 94891:3a28e9f5eda0

(handle_one_xevent): Don't pass buttons higher than 3 to Gtk+ menus.
author Jan Djärv <jan.h.d@swipnet.se>
date Tue, 13 May 2008 08:08:13 +0000
parents 907ac6ecef89
children 562fcfcace31
files src/xterm.c
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/xterm.c	Tue May 13 05:16:43 2008 +0000
+++ b/src/xterm.c	Tue May 13 08:08:13 2008 +0000
@@ -7175,6 +7175,8 @@
         if (
 #ifdef USE_GTK
             ! popup_activated ()
+            /* Gtk+ menus only react to the first three buttons. */
+            && event.xbutton.button < 3
             &&
 #endif
             f && event.type == ButtonPress