diff options
author | Jan Djärv <[email protected]> | 2008-05-13 08:08:25 +0000 |
---|---|---|
committer | Jan Djärv <[email protected]> | 2008-05-13 08:08:25 +0000 |
commit | 44f249c0558f1dab796118fe4e95a31d320badac (patch) | |
tree | 0cfc0232d075b1862c3f5429bfca478f24b81e87 | |
parent | 3271a8f56cca6dc132ee3af157e87ab8faf42ab8 (diff) |
(handle_one_xevent): Don't pass buttons higher than 3
to Gtk+ menus.
-rw-r--r-- | src/ChangeLog | 5 | ||||
-rw-r--r-- | src/xterm.c | 2 |
2 files changed, 7 insertions, 0 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index 31bf04624b..45104245d7 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,8 @@ +2008-05-13 Jan Djärv <[email protected]> + + * xterm.c (handle_one_xevent): Don't pass buttons higher than 3 + to Gtk+ menus. + 2008-05-13 Stefan Monnier <[email protected]> * 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 5dda7ed2c5..9d410a0ba8 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 |