Skip to content

Commit

Permalink
input: Fix #2376 mouse movement bug in XWayland (#2776)
Browse files Browse the repository at this point in the history
  • Loading branch information
rkanati authored Jul 22, 2023
1 parent b70553c commit b21644b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/managers/input/InputManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit b21644b

Please sign in to comment.