Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
windows: fix mouse-button-down encoding
Previously, pressing the left mouse button incorrectly reported that X11MOUSE_BUTTON3 (right button) was pressed, and right or middle buttons were incorrectly reported as modifiers (ctrl/shift/etc), as they ended up outside the 2-bits which x11 mouse uses for button id. Now left/middle/right are reported as x11 BUTTON 1/2/3, respectively. This doesn't have any visible impact, because currently there's only mouse-button-up binding, and less doesn't care which button it was. However, the next commit will add right-mouse-button binding, so ensure the windows mouse handling doesn't become broken.
- Loading branch information