From 4bfa885feba7de65cd3c856aac3d4fe8546f3076 Mon Sep 17 00:00:00 2001 From: Vaxry Date: Mon, 22 Jul 2024 17:23:43 +0200 Subject: [PATCH] hyprbars: fixup condition for button down --- hyprbars/barDeco.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hyprbars/barDeco.cpp b/hyprbars/barDeco.cpp index 0e84e5b..7de61a4 100644 --- a/hyprbars/barDeco.cpp +++ b/hyprbars/barDeco.cpp @@ -80,7 +80,7 @@ void CHyprBar::onMouseDown(SCallbackInfo& info, IPointer::SButtonEvent e) { return; } - if (!e.state != WL_POINTER_BUTTON_STATE_PRESSED) { + if (e.state != WL_POINTER_BUTTON_STATE_PRESSED) { if (m_bCancelledDown) info.cancelled = true;