From: Jan Djärv Date: Tue, 13 May 2008 08:08:25 +0000 (+0000) Subject: (handle_one_xevent): Don't pass buttons higher than 3 X-Git-Tag: emacs-pretest-23.0.90~5604 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=44f249c0558f1dab796118fe4e95a31d320badac;p=emacs.git (handle_one_xevent): Don't pass buttons higher than 3 to Gtk+ menus. --- 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