]> git.eshelyaron.com Git - emacs.git/commitdiff
(handle_one_xevent): Don't pass buttons higher than 3
authorJan Djärv <jan.h.d@swipnet.se>
Tue, 13 May 2008 08:08:25 +0000 (08:08 +0000)
committerJan Djärv <jan.h.d@swipnet.se>
Tue, 13 May 2008 08:08:25 +0000 (08:08 +0000)
to Gtk+ menus.

src/ChangeLog
src/xterm.c

index 31bf04624b03c7899503b081806e22aed3d20108..45104245d79d245c6d7c697bdfc63639473920ee 100644 (file)
@@ -1,3 +1,8 @@
+2008-05-13  Jan Djärv  <jan.h.d@swipnet.se>
+
+       * xterm.c (handle_one_xevent): Don't pass buttons higher than 3
+       to Gtk+ menus.
+
 2008-05-13  Stefan Monnier  <monnier@iro.umontreal.ca>
 
        * dired.c (file_name_completion): Tweak the code so as to always do it
index 5dda7ed2c5d3fe0121328a5b2cbe228c7ef8e45b..9d410a0ba8a4c9ab669bf504fb67ee94d20d0be0 100644 (file)
@@ -7175,6 +7175,8 @@ handle_one_xevent (dpyinfo, eventp, finish, hold_quit)
         if (
 #ifdef USE_GTK
             ! popup_activated ()
+            /* Gtk+ menus only react to the first three buttons. */
+            && event.xbutton.button < 3
             &&
 #endif
             f && event.type == ButtonPress