]> asedeno.scripts.mit.edu Git - PuTTY.git/commit
Ignore mouse events that didn't start with a click.
authorSimon Tatham <anakin@pobox.com>
Thu, 3 Sep 2015 18:20:28 +0000 (19:20 +0100)
committerSimon Tatham <anakin@pobox.com>
Thu, 3 Sep 2015 18:35:06 +0000 (19:35 +0100)
commit30e63c1059ff306fc086570967b914294c72ae65
treea4aa6f39cae53dfcac884f589f980c0f8c26ce38
parent6744387924835792147f73644e1eed10e146b5c8
Ignore mouse events that didn't start with a click.

On OS X GTK, when you click in a pterm that wasn't the active window,
the first click activates it but is swallowed by the windowing system
- but a subsequent tiny drag can still be taken as part of a selection
action, making it difficult to activate the window in order to paste
into it.

Fixed by ignoring mouse drags when the terminal.c mouse state was
NO_SELECTION; if we've seen one prior click then it should be
ABOUT_TO, or DRAGGING if we saw a double or triple click.
terminal.c