diff options
author | Eli Zaretskii <eliz@gnu.org> | 2022-04-30 12:35:48 +0300 |
---|---|---|
committer | Eli Zaretskii <eliz@gnu.org> | 2022-04-30 12:35:48 +0300 |
commit | 7b7a124afa0a71f4847ddc5a3934b02ab5d46d2c (patch) | |
tree | 53dd18953cfdf1a28edfbb5952ebe52cff869fb4 /src/w32term.c | |
parent | 03561b4aad87bbc32131e026e253628e8cef9f2f (diff) | |
download | emacs-7b7a124afa0a71f4847ddc5a3934b02ab5d46d2c.tar.gz |
; * src/w32term.c (w32_read_socket): Add comment for recent change.
Diffstat (limited to 'src/w32term.c')
-rw-r--r-- | src/w32term.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/w32term.c b/src/w32term.c index 8a98d2f1c67..0c16dc1eef4 100644 --- a/src/w32term.c +++ b/src/w32term.c @@ -5423,6 +5423,15 @@ w32_read_socket (struct terminal *terminal, window = window_from_coordinates (f, x, y, 0, 1, 1); if (EQ (window, f->tool_bar_window) + /* Make sure the tool bar was previously + pressed, otherwise an event that started + outside of the tool bar will not be handled + correctly when the mouse button is + released. For example, start dragging to + select some buffer text, drag the mouse to + the tool bar, and release the mouse button + -- this should not consider the release + event as a tool-bar click. */ && (inev.modifiers & down_modifier || f->last_tool_bar_item != -1)) { |