diff options
| author | Daniel Eklöf <daniel@ekloef.se> | 2024-08-09 06:20:59 +0000 |
|---|---|---|
| committer | Daniel Eklöf <daniel@ekloef.se> | 2024-08-09 06:20:59 +0000 |
| commit | bef613e656a36400577cde295b09267c80f3adce (patch) | |
| tree | 245025554197e8df66524eb0e327eb0e4d4ac204 /debug.c | |
| parent | input: 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 'debug.c')
0 files changed, 0 insertions, 0 deletions
