mirror of
https://github.com/hyprwm/Hyprland
synced 2024-11-25 22:05:59 +01:00
deco: fix warnings
This commit is contained in:
parent
fa886d8b11
commit
a01949dd28
1 changed files with 3 additions and 3 deletions
|
@ -430,15 +430,15 @@ bool CHyprGroupBarDecoration::onMouseButtonOnDeco(const Vector2D& pos, wlr_point
|
||||||
if (e->button == 274) {
|
if (e->button == 274) {
|
||||||
static Vector2D pressedCursorPos;
|
static Vector2D pressedCursorPos;
|
||||||
|
|
||||||
if (e->state == WLR_BUTTON_PRESSED)
|
if (e->state == WL_POINTER_BUTTON_STATE_PRESSED)
|
||||||
pressedCursorPos = pos;
|
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));
|
g_pXWaylandManager->sendCloseWindow(m_pWindow->getGroupWindowByIndex(WINDOWINDEX));
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (e->state != WLR_BUTTON_PRESSED)
|
if (e->state != WL_POINTER_BUTTON_STATE_PRESSED)
|
||||||
return true;
|
return true;
|
||||||
|
|
||||||
// click on padding
|
// click on padding
|
||||||
|
|
Loading…
Reference in a new issue