]> git.mdlowis.com Git - proto/labwc.git/commit
cursor: More reliably clear "pressed" status of mouse bindings
authorJohn Lindgren <john@jlindgren.net>
Sat, 8 Jan 2022 07:47:30 +0000 (02:47 -0500)
committerJohan Malm <johanmalm@users.noreply.github.com>
Sat, 8 Jan 2022 09:31:53 +0000 (09:31 +0000)
commit4e3a03586aa72eefce893e9865b97248be0e0f53
tree05abe399d8be6dec6a5a5ced559507243da72814
parent7f8b7f0a5620babd2924c074fa4674692c19ff43
cursor: More reliably clear "pressed" status of mouse bindings

The "pressed" status of the mouse button is stored per-binding, and
the first binding activated causes us to break out of the loop that
cleared the "pressed" status -- as a result, some statused weren't
cleared when another binding was activated.

The bug could be seen when clicking the maximize button on a window
and then moving the mouse: the DRAG action would continue to move
the window (unmaximizing it) even though the mouse button was no
longer held.
src/cursor.c