projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
402c90c
)
Fix releasing the mouse on top of the tool bar on MS Windows
author
Po Lu
<luangruo@yahoo.com>
Sat, 30 Apr 2022 05:26:40 +0000
(13:26 +0800)
committer
Po Lu
<luangruo@yahoo.com>
Sat, 30 Apr 2022 05:26:40 +0000
(13:26 +0800)
* 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.
src/w32term.c
patch
|
blob
|
history
diff --git
a/src/w32term.c
b/src/w32term.c
index 1937f94645243559d1225f56721007de0b7f12b9..205ac7496692fda606208db84ccd6698a3b37cdd 100644
(file)
--- a/
src/w32term.c
+++ b/
src/w32term.c
@@
-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;