From 44f249c0558f1dab796118fe4e95a31d320badac Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jan=20Dj=C3=A4rv?= Date: Tue, 13 May 2008 08:08:25 +0000 Subject: [PATCH] (handle_one_xevent): Don't pass buttons higher than 3 to Gtk+ menus. --- src/ChangeLog | 5 +++++ src/xterm.c | 2 ++ 2 files changed, 7 insertions(+) diff --git a/src/ChangeLog b/src/ChangeLog index 31bf04624b0..45104245d79 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,8 @@ +2008-05-13 Jan Djärv + + * xterm.c (handle_one_xevent): Don't pass buttons higher than 3 + to Gtk+ menus. + 2008-05-13 Stefan Monnier * dired.c (file_name_completion): Tweak the code so as to always do it diff --git a/src/xterm.c b/src/xterm.c index 5dda7ed2c5d..9d410a0ba8a 100644 --- a/src/xterm.c +++ b/src/xterm.c @@ -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 -- 2.39.2