diff options
| author | Vaxry <vaxry@vaxry.net> | 2024-03-09 16:39:33 +0000 |
|---|---|---|
| committer | Vaxry <vaxry@vaxry.net> | 2024-03-09 16:39:38 +0000 |
| commit | a01949dd286ba67f8026aeec38b44b61e20be412 (patch) | |
| tree | cb5d2fd388ab9de7f0b0fecf6ab1638b261feb93 /src/render/decorations/CHyprGroupBarDecoration.cpp | |
| parent | fa886d8b11b5d38f9fa12debcdd1f992b258406a (diff) | |
deco: fix warnings
Diffstat (limited to 'src/render/decorations/CHyprGroupBarDecoration.cpp')
| -rw-r--r-- | src/render/decorations/CHyprGroupBarDecoration.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/render/decorations/CHyprGroupBarDecoration.cpp b/src/render/decorations/CHyprGroupBarDecoration.cpp index cd9f32be..defff9ba 100644 --- a/src/render/decorations/CHyprGroupBarDecoration.cpp +++ b/src/render/decorations/CHyprGroupBarDecoration.cpp @@ -430,15 +430,15 @@ bool CHyprGroupBarDecoration::onMouseButtonOnDeco(const Vector2D& pos, wlr_point if (e->button == 274) { static Vector2D pressedCursorPos; - if (e->state == WLR_BUTTON_PRESSED) + if (e->state == WL_POINTER_BUTTON_STATE_PRESSED) pressedCursorPos = pos; - else if (e->state == WLR_BUTTON_RELEASED && pressedCursorPos == pos) + else if (e->state == WL_POINTER_BUTTON_STATE_RELEASED && pressedCursorPos == pos) g_pXWaylandManager->sendCloseWindow(m_pWindow->getGroupWindowByIndex(WINDOWINDEX)); return true; } - if (e->state != WLR_BUTTON_PRESSED) + if (e->state != WL_POINTER_BUTTON_STATE_PRESSED) return true; // click on padding |
