Commit a3a44a5a authored by Jan Djärv's avatar Jan Djärv
Browse files

(handle_one_xevent): Ignore buttons > 3 for the tool bar.

parent 49d92e9d
2007-03-09 Jan Dj,Ad(Brv <jan.h.d@swipnet.se>
* xterm.c (handle_one_xevent): Ignore buttons > 3 for the tool bar.
2007-03-09 Juanma Barranquero <lekktu@gmail.com>
 
* keymap.c (Fdescribe_buffer_bindings): Check that BUFFER is valid.
......
......@@ -6759,7 +6759,9 @@ handle_one_xevent (dpyinfo, eventp, finish, hold_quit)
int y = event.xbutton.y;
window = window_from_coordinates (f, x, y, 0, 0, 0, 1);
if (EQ (window, f->tool_bar_window))
tool_bar_p = EQ (window, f->tool_bar_window);
if (tool_bar_p && event.xbutton.button < 4)
{
if (event.xbutton.type == ButtonPress)
handle_tool_bar_click (f, x, y, 1, 0);
......@@ -6767,7 +6769,6 @@ handle_one_xevent (dpyinfo, eventp, finish, hold_quit)
handle_tool_bar_click (f, x, y, 0,
x_x_to_emacs_modifiers (dpyinfo,
event.xbutton.state));
tool_bar_p = 1;
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment