1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-01-09 17:38:00 +00:00

Do not send raw mouse events in the middle of a selection operation, even if

we otherwise would (for instance, if Shift is released before the mouse button
being used for selection).

[originally from svn r6727]
[this svn revision also touched putty-wishlist]
This commit is contained in:
Jacob Nevins 2006-06-11 12:56:52 +00:00
parent bbec032476
commit a2c060d638

View File

@ -5578,7 +5578,16 @@ void term_mouse(Terminal *term, Mouse_Button braw, Mouse_Button bcooked,
selpoint.x = x;
unlineptr(ldata);
if (raw_mouse) {
/*
* If we're in the middle of a selection operation, we ignore raw
* mouse mode until it's done (we must have been not in raw mouse
* mode when it started).
* This makes use of Shift for selection reliable, and avoids the
* host seeing mouse releases for which they never saw corresponding
* presses.
*/
if (raw_mouse &&
(term->selstate != ABOUT_TO) && (term->selstate != DRAGGING)) {
int encstate = 0, r, c;
char abuf[16];