hyprbars: fixup condition for button down

This commit is contained in:
Vaxry 2024-07-22 17:23:43 +02:00
parent 1ce5b7a046
commit 4bfa885feb

View file

@ -80,7 +80,7 @@ void CHyprBar::onMouseDown(SCallbackInfo& info, IPointer::SButtonEvent e) {
return; return;
} }
if (!e.state != WL_POINTER_BUTTON_STATE_PRESSED) { if (e.state != WL_POINTER_BUTTON_STATE_PRESSED) {
if (m_bCancelledDown) if (m_bCancelledDown)
info.cancelled = true; info.cancelled = true;