From: Jan Djärv Date: Tue, 13 May 2008 08:13:24 +0000 (+0000) Subject: (handle_one_xevent): Don't pass buttons higher than 3 X-Git-Tag: emacs-pretest-22.2.90~129 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=bb16531656a1daf7deec8a14e3a8a5fdb2c87818;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 dc4198045b8..46ba627e2e7 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,8 @@ +2008-05-13 Jan Dj,Ad(Brv + + * xterm.c (handle_one_xevent): Don't pass buttons higher than 3 + to Gtk+ menus. + 2008-05-12 YAMAMOTO Mitsuharu * emacs.c (main_thread): Conditionalize on diff --git a/src/xterm.c b/src/xterm.c index 3b625b0d662..89cf06c05e0 100644 --- a/src/xterm.c +++ b/src/xterm.c @@ -6848,6 +6848,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