the code did nothing!

This commit is contained in:
caffeine01 2024-12-18 01:34:25 +00:00
parent 03aa75dd51
commit 683466d7e4

View file

@ -134,19 +134,12 @@ void CHyprBar::onTouchDown(SCallbackInfo& info, ITouch::SDownEvent e) {
Debug::log(LOG, "[hyprbars] Dragging ended on touchdown {:x}", (uintptr_t)PWINDOW.get()); 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_bDraggingThis = false;
m_bDragPending = false; m_bDragPending = false;
m_bTouchEv = false; m_bTouchEv = false;
return; return;
} }
g_pCompositor->warpCursorTo(Vector2D(e.pos.x, e.pos.y));
if (PWINDOW->m_bIsFloating) if (PWINDOW->m_bIsFloating)
g_pCompositor->changeWindowZOrder(PWINDOW, true); g_pCompositor->changeWindowZOrder(PWINDOW, true);