mouse fix for nt tty
No wonder we've had complaints about the mouse lately. The port was responding to mouse movements that didn't even involve a button click.
This commit is contained in:
@@ -432,8 +432,10 @@ int *x, *y, *mod;
|
||||
(ch || (iskeypad(scan)) || altseq)) {
|
||||
*mod = 0;
|
||||
return process_keystroke(&ir, &valid);
|
||||
} else if ((ir.EventType == MOUSE_EVENT &&
|
||||
(ir.Event.MouseEvent.dwButtonState & MOUSEMASK))) {
|
||||
} else if (
|
||||
(ir.EventType == MOUSE_EVENT &&
|
||||
(ir.Event.MouseEvent.dwEventFlags == 0) &&
|
||||
(ir.Event.MouseEvent.dwButtonState & MOUSEMASK))) {
|
||||
*x = ir.Event.MouseEvent.dwMousePosition.X + 1;
|
||||
*y = ir.Event.MouseEvent.dwMousePosition.Y - 1;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user