aboutsummaryrefslogtreecommitdiff
path: root/mac
diff options
context:
space:
mode:
authorRoger Peppe <rogpeppe@gmail.com>2025-03-29 13:10:49 +0000
committerDan Cross <crossd@gmail.com>2025-03-29 11:23:26 -0400
commit9da5b4451365e33c4f561d74a99ad5c17ff20fed (patch)
tree2d2a0e177cd96cb698501e108315dc4c9e8f820a /mac
parent13582b1a899b9644071791e862c935384c27cb35 (diff)
cmd/devdraw: avoid use of X button state field
This bug is an intermittent annoyance and does not seem likely to be fixed soon. It means that every so often my acme becomes unusable because it behaves as if a mouse button is permanently set. Avoid that issue by keeping track of mouse button state directly. While we're about it, fix another annoying issue: under Linux the FocusOut event reset the kstate field but not the kbuttons field, meaning that the buttons state could inappropriately persist. This happened occasionally by accident, but was easy to reproduce: with the mouse button held down, drag outside the window and click Alt-Tab to switch away from the window. We see a KeyDown event followed by FocusOut but no KeyUp event. Change-Id: I3708316478c80c41806d7157ae9929c6cd84b662
Diffstat (limited to 'mac')
0 files changed, 0 insertions, 0 deletions