From b21644b61143de0835fef9c3fa69fbdd2553cdfa Mon Sep 17 00:00:00 2001 From: Rachel Knight Date: Sat, 22 Jul 2023 18:31:36 +0100 Subject: [PATCH] input: Fix #2376 mouse movement bug in XWayland (#2776) --- src/managers/input/InputManager.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/managers/input/InputManager.cpp b/src/managers/input/InputManager.cpp index 734df863..3a7a77f2 100644 --- a/src/managers/input/InputManager.cpp +++ b/src/managers/input/InputManager.cpp @@ -1175,7 +1175,7 @@ void CInputManager::constrainMouse(SMouse* pMouse, wlr_pointer_constraint_v1* co if (PWINDOW) { if (PWINDOW->m_bIsX11) { wlr_cursor_warp(g_pCompositor->m_sWLRCursor, nullptr, constraint->current.cursor_hint.x + PWINDOW->m_uSurface.xwayland->x, - PWINDOW->m_uSurface.xwayland->y + PWINDOW->m_vRealPosition.vec().y); + constraint->current.cursor_hint.y + PWINDOW->m_uSurface.xwayland->y); wlr_seat_pointer_warp(constraint->seat, constraint->current.cursor_hint.x, constraint->current.cursor_hint.y); } else {