From bb16531656a1daf7deec8a14e3a8a5fdb2c87818 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jan=20Dj=C3=A4rv?= Date: Tue, 13 May 2008 08:13:24 +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 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 -- 2.39.5