aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJan Djärv2007-03-09 17:42:12 +0000
committerJan Djärv2007-03-09 17:42:12 +0000
commita3a44a5a78c7f55064e2a37aae519c394b66fd93 (patch)
treef499e11404416362cdefaa6a5e2f6a9936791a91
parent49d92e9d28a8d2acd2d52340f07465fe84349855 (diff)
downloademacs-a3a44a5a78c7f55064e2a37aae519c394b66fd93.tar.gz
emacs-a3a44a5a78c7f55064e2a37aae519c394b66fd93.zip
(handle_one_xevent): Ignore buttons > 3 for the tool bar.
-rw-r--r--src/ChangeLog4
-rw-r--r--src/xterm.c15
2 files changed, 12 insertions, 7 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index cad1ad4e210..0db2afdbb4f 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,7 @@
12007-03-09 Jan Dj,Ad(Brv <jan.h.d@swipnet.se>
2
3 * xterm.c (handle_one_xevent): Ignore buttons > 3 for the tool bar.
4
12007-03-09 Juanma Barranquero <lekktu@gmail.com> 52007-03-09 Juanma Barranquero <lekktu@gmail.com>
2 6
3 * keymap.c (Fdescribe_buffer_bindings): Check that BUFFER is valid. 7 * keymap.c (Fdescribe_buffer_bindings): Check that BUFFER is valid.
diff --git a/src/xterm.c b/src/xterm.c
index e9cf5fd6d0e..4f77e22ac59 100644
--- a/src/xterm.c
+++ b/src/xterm.c
@@ -6759,15 +6759,16 @@ handle_one_xevent (dpyinfo, eventp, finish, hold_quit)
6759 int y = event.xbutton.y; 6759 int y = event.xbutton.y;
6760 6760
6761 window = window_from_coordinates (f, x, y, 0, 0, 0, 1); 6761 window = window_from_coordinates (f, x, y, 0, 0, 0, 1);
6762 if (EQ (window, f->tool_bar_window)) 6762 tool_bar_p = EQ (window, f->tool_bar_window);
6763
6764 if (tool_bar_p && event.xbutton.button < 4)
6763 { 6765 {
6764 if (event.xbutton.type == ButtonPress) 6766 if (event.xbutton.type == ButtonPress)
6765 handle_tool_bar_click (f, x, y, 1, 0); 6767 handle_tool_bar_click (f, x, y, 1, 0);
6766 else 6768 else
6767 handle_tool_bar_click (f, x, y, 0, 6769 handle_tool_bar_click (f, x, y, 0,
6768 x_x_to_emacs_modifiers (dpyinfo, 6770 x_x_to_emacs_modifiers (dpyinfo,
6769 event.xbutton.state)); 6771 event.xbutton.state));
6770 tool_bar_p = 1;
6771 } 6772 }
6772 } 6773 }
6773 6774