seat: track pressed pointer buttons

releases them on leave, unless there is a dnd going on
This commit is contained in:
Vaxry 2024-06-17 16:07:32 +02:00
parent 1360677478
commit 785d062887
2 changed files with 28 additions and 0 deletions

View file

@ -76,6 +76,8 @@ class CWLPointerResource {
SP<CWlPointer> resource;
WP<CWLSurfaceResource> currentSurface;
std::vector<uint32_t> pressedButtons;
struct {
CHyprSignalListener destroySurface;
} listeners;