From 376e3745b3dd430aa4cded63e186d0cb6d135b60 Mon Sep 17 00:00:00 2001 From: vaxerski <43317083+vaxerski@users.noreply.github.com> Date: Tue, 28 Feb 2023 23:14:49 +0000 Subject: [PATCH] Minor fix to dragging --- hyprbars/barDeco.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/hyprbars/barDeco.cpp b/hyprbars/barDeco.cpp index 2476172..3399ecd 100644 --- a/hyprbars/barDeco.cpp +++ b/hyprbars/barDeco.cpp @@ -76,8 +76,9 @@ void CHyprBar::onMouseDown(wlr_pointer_button_event* e) { return; } - // if we do this here the handler later will remove our mouse bind - m_bDragPending = true; + // if we call da dispatcher here the handler later will remove our mouse bind + if (VECINRECT(COORDS, 0, 0, m_vLastWindowSize.x, *PHEIGHT)) + m_bDragPending = true; } void CHyprBar::onMouseMove(Vector2D coords) {