diff options
| author | Tyler Schneider <teschnei@gmail.com> | 2023-10-25 19:05:10 -0600 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-10-26 02:05:10 +0100 |
| commit | 07714dd5bd9ff60e10170e11b535409e1bbc92ef (patch) | |
| tree | 37faae190d059655c87313114b04f6fb9dd3b29d /src/managers/input/InputManager.cpp | |
| parent | 5cc33b4e8c3e672202d5167652a4e49ff1acf105 (diff) | |
input: Apply scaling to cursorPosOnActivate position (#3664)
Diffstat (limited to 'src/managers/input/InputManager.cpp')
| -rw-r--r-- | src/managers/input/InputManager.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/managers/input/InputManager.cpp b/src/managers/input/InputManager.cpp index 5231a9a7..95240d1a 100644 --- a/src/managers/input/InputManager.cpp +++ b/src/managers/input/InputManager.cpp @@ -1202,7 +1202,7 @@ void CInputManager::constrainMouse(SMouse* pMouse, wlr_pointer_constraint_v1* co g_pXWaylandManager->xwaylandToWaylandCoords({PWINDOW->m_uSurface.xwayland->x, PWINDOW->m_uSurface.xwayland->y})) : PWINDOW->m_vRealPosition.goalv(); - PCONSTRAINT->cursorPosOnActivate = MOUSECOORDS - RELATIVETO; + PCONSTRAINT->cursorPosOnActivate = (MOUSECOORDS - RELATIVETO) * PWINDOW->m_fX11SurfaceScaledBy; } if (constraint->current.committed & WLR_POINTER_CONSTRAINT_V1_STATE_CURSOR_HINT) { |
