Fix releasing the mouse on top of the tool bar on MS Windows
* src/w32term.c (w32_read_socket): Don't handle tool bar clicks specially for button up events if no tool bar item was previously pressed.
This commit is contained in:
parent
402c90c912
commit
4fb028be6c
1 changed files with 3 additions and 1 deletions
|
@ -5365,7 +5365,9 @@ w32_read_socket (struct terminal *terminal,
|
|||
|
||||
window = window_from_coordinates (f, x, y, 0, 1, 1);
|
||||
|
||||
if (EQ (window, f->tool_bar_window))
|
||||
if (EQ (window, f->tool_bar_window)
|
||||
&& (inev.modifiers & down_modifier
|
||||
|| f->last_tool_bar_item != -1))
|
||||
{
|
||||
w32_handle_tool_bar_click (f, &inev);
|
||||
tool_bar_p = 1;
|
||||
|
|
Loading…
Add table
Reference in a new issue