changeset 80576:e4bdf6e277ce

(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:13:13 +0000
parents 3ca72ee8c474
children 45c14bfc78c0
files src/xterm.c
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/xterm.c	Mon May 12 20:07:57 2008 +0000
+++ b/src/xterm.c	Tue May 13 08:13:13 2008 +0000
@@ -6848,6 +6848,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