From 858949cf61939e71ec0af7e9cedc8d08ca5835d5 Mon Sep 17 00:00:00 2001 From: caffeine01 Date: Tue, 17 Dec 2024 12:59:24 +0000 Subject: [PATCH] preimplementation of cancel event --- hyprbars/barDeco.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/hyprbars/barDeco.cpp b/hyprbars/barDeco.cpp index 9bb64a6..135c9d1 100644 --- a/hyprbars/barDeco.cpp +++ b/hyprbars/barDeco.cpp @@ -134,6 +134,11 @@ void CHyprBar::onTouchDown(SCallbackInfo& info, ITouch::SDownEvent e) { Debug::log(LOG, "[hyprbars] Dragging ended on touchdown {:x}", (uintptr_t)PWINDOW.get()); } + if (m_bCancelledDown) + info.cancelled = true; + + m_bCancelledDown = false; + m_bDraggingThis = false; m_bDragPending = false; m_bTouchEv = false;