diff options
author | vaxerski <[email protected]> | 2023-04-06 11:34:18 +0100 |
---|---|---|
committer | vaxerski <[email protected]> | 2023-04-06 11:34:18 +0100 |
commit | 19809532df61b47750485ec7d84bedd083c809f1 (patch) | |
tree | e369b3021b753bd6506a000b29f295607b5019f2 /src/managers/input/Touch.cpp | |
parent | 110f3fd6585c8b92d3bc2dbaabbd2c1a1f76de7a (diff) | |
download | Hyprland-19809532df61b47750485ec7d84bedd083c809f1.tar.gz Hyprland-19809532df61b47750485ec7d84bedd083c809f1.zip |
input: ignore constraints on touch
Diffstat (limited to 'src/managers/input/Touch.cpp')
-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 70bae3b2..9f8f0e04 100644 --- a/src/managers/input/Touch.cpp +++ b/src/managers/input/Touch.cpp @@ -62,7 +62,7 @@ void CInputManager::onTouchMove(wlr_touch_motion_event* e) { if (m_sTouchData.touchFocusWindow && g_pCompositor->windowValidMapped(m_sTouchData.touchFocusWindow)) { const auto PMONITOR = g_pCompositor->getMonitorFromID(m_sTouchData.touchFocusWindow->m_iMonitorID); - wlr_cursor_warp(g_pCompositor->m_sWLRCursor, g_pCompositor->m_sSeat.mouse->mouse, PMONITOR->vecPosition.x + e->x * PMONITOR->vecSize.x, + wlr_cursor_warp(g_pCompositor->m_sWLRCursor, nullptr, PMONITOR->vecPosition.x + e->x * PMONITOR->vecSize.x, PMONITOR->vecPosition.y + e->y * PMONITOR->vecSize.y); const auto local = g_pInputManager->getMouseCoordsInternal() - m_sTouchData.touchSurfaceOrigin; @@ -72,7 +72,7 @@ void CInputManager::onTouchMove(wlr_touch_motion_event* e) { } else if (m_sTouchData.touchFocusLS) { const auto PMONITOR = g_pCompositor->getMonitorFromID(m_sTouchData.touchFocusLS->monitorID); - wlr_cursor_warp(g_pCompositor->m_sWLRCursor, g_pCompositor->m_sSeat.mouse->mouse, PMONITOR->vecPosition.x + e->x * PMONITOR->vecSize.x, + wlr_cursor_warp(g_pCompositor->m_sWLRCursor, nullptr, PMONITOR->vecPosition.x + e->x * PMONITOR->vecSize.x, PMONITOR->vecPosition.y + e->y * PMONITOR->vecSize.y); const auto local = g_pInputManager->getMouseCoordsInternal() - m_sTouchData.touchSurfaceOrigin; |