mirror of
https://github.com/hyprwm/hyprland-plugins.git
synced 2025-01-09 22:09:48 +01:00
preimplementation of cancel event
This commit is contained in:
parent
bf58b971cb
commit
858949cf61
1 changed files with 5 additions and 0 deletions
|
@ -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());
|
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;
|
||||||
|
|
Loading…
Reference in a new issue