diff options
author | swwind <[email protected]> | 2023-12-06 22:30:40 +0800 |
---|---|---|
committer | GitHub <[email protected]> | 2023-12-06 14:30:40 +0000 |
commit | 13b4c6de869b782ae18a0e8ac7c590e8000cc1c2 (patch) | |
tree | c4067ea15f8cf39f75e315611c13976c08023460 | |
parent | 8bd86cf37e245088433156796f1bc72542ca09ad (diff) | |
download | Hyprland-13b4c6de869b782ae18a0e8ac7c590e8000cc1c2.tar.gz Hyprland-13b4c6de869b782ae18a0e8ac7c590e8000cc1c2.zip |
input: don't send mouse events on touch (#4071)
-rw-r--r-- | src/managers/input/Touch.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/managers/input/Touch.cpp b/src/managers/input/Touch.cpp index 965eee86..600df302 100644 --- a/src/managers/input/Touch.cpp +++ b/src/managers/input/Touch.cpp @@ -72,7 +72,7 @@ void CInputManager::onTouchMove(wlr_touch_motion_event* e) { local = local * m_sTouchData.touchFocusWindow->m_fX11SurfaceScaledBy; wlr_seat_touch_notify_motion(g_pCompositor->m_sSeat.seat, e->time_msec, e->touch_id, local.x, local.y); - wlr_seat_pointer_notify_motion(g_pCompositor->m_sSeat.seat, e->time_msec, local.x, local.y); + // wlr_seat_pointer_notify_motion(g_pCompositor->m_sSeat.seat, e->time_msec, local.x, local.y); } else if (m_sTouchData.touchFocusLS) { const auto PMONITOR = g_pCompositor->getMonitorFromID(m_sTouchData.touchFocusLS->monitorID); @@ -81,7 +81,7 @@ void CInputManager::onTouchMove(wlr_touch_motion_event* e) { const auto local = g_pInputManager->getMouseCoordsInternal() - m_sTouchData.touchSurfaceOrigin; wlr_seat_touch_notify_motion(g_pCompositor->m_sSeat.seat, e->time_msec, e->touch_id, local.x, local.y); - wlr_seat_pointer_notify_motion(g_pCompositor->m_sSeat.seat, e->time_msec, local.x, local.y); + // wlr_seat_pointer_notify_motion(g_pCompositor->m_sSeat.seat, e->time_msec, local.x, local.y); } } |