aboutsummaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2024-08-09 06:20:59 +0000
committerDaniel Eklöf <daniel@ekloef.se>2024-08-09 06:20:59 +0000
commitbef613e656a36400577cde295b09267c80f3adce (patch)
tree245025554197e8df66524eb0e327eb0e4d4ac204 /scripts
parentinput: CSD buttons are now triggered when releasing the mouse button (diff)
csd: track pointer when rendering and handling CSD button clicks
* Render button as highlighted only when pointer is above them * Releasing the mouse button while *not* on the button does *not* activate the button When pressing, and holding, a mouse button, the compositor keeps sending motion events for the surface where the button was pressed, even if the mouse has moved outside it. We also don't get any surface leave/enter events. This meant that the button was rendered as highlighted, and a click registered, if the user pressed the mouse button while on the button, and then moved the cursor away from the button before releasing the button. This patch fixes it, by checking if the current cursor coordinates fall within the button surface.
Diffstat (limited to 'scripts')
0 files changed, 0 insertions, 0 deletions