aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/managers/input/Touch.cpp
diff options
context:
space:
mode:
authorvaxerski <[email protected]>2022-09-22 21:14:02 +0100
committervaxerski <[email protected]>2022-09-22 21:14:02 +0100
commite5d143b2386c3773f6fb5176752a1b381d3ee7a5 (patch)
tree6deb7fb7eacdf29758a7a962c365f1038ca0ff37 /src/managers/input/Touch.cpp
parent37f2e1ddbe4020e59395b2f364c5a6e7d6db550a (diff)
downloadHyprland-e5d143b2386c3773f6fb5176752a1b381d3ee7a5.tar.gz
Hyprland-e5d143b2386c3773f6fb5176752a1b381d3ee7a5.zip
support more wlr_cursor events
Diffstat (limited to 'src/managers/input/Touch.cpp')
-rw-r--r--src/managers/input/Touch.cpp10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/managers/input/Touch.cpp b/src/managers/input/Touch.cpp
index 5d97369f..c48f7473 100644
--- a/src/managers/input/Touch.cpp
+++ b/src/managers/input/Touch.cpp
@@ -40,4 +40,12 @@ void CInputManager::onTouchMove(wlr_touch_motion_event* e){
wlr_seat_touch_notify_motion(g_pCompositor->m_sSeat.seat, e->time_msec, e->touch_id, local.x, local.y);
}
-} \ No newline at end of file
+}
+
+void CInputManager::onPointerHoldBegin(wlr_pointer_hold_begin_event* e) {
+ wlr_pointer_gestures_v1_send_hold_begin(g_pCompositor->m_sWLRPointerGestures, g_pCompositor->m_sSeat.seat, e->time_msec, e->fingers);
+}
+
+void CInputManager::onPointerHoldEnd(wlr_pointer_hold_end_event* e) {
+ wlr_pointer_gestures_v1_send_hold_end(g_pCompositor->m_sWLRPointerGestures, g_pCompositor->m_sSeat.seat, e->time_msec, e->cancelled);
+}