aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorRachel Knight <[email protected]>2023-07-22 18:31:36 +0100
committerGitHub <[email protected]>2023-07-22 19:31:36 +0200
commitb21644b61143de0835fef9c3fa69fbdd2553cdfa (patch)
treef3fc93623b060ffcc11abacdc67d361f97724ffc
parentb70553cf46bed70ecf705c936706e777bd50c2f5 (diff)
downloadHyprland-b21644b61143de0835fef9c3fa69fbdd2553cdfa.tar.gz
Hyprland-b21644b61143de0835fef9c3fa69fbdd2553cdfa.zip
input: Fix #2376 mouse movement bug in XWayland (#2776)
-rw-r--r--src/managers/input/InputManager.cpp2
1 files changed, 1 insertions, 1 deletions
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 {