mirror of
https://github.com/hyprwm/Hyprland
synced 2024-11-23 05:06:00 +01:00
input: Apply scaling to cursorPosOnActivate position (#3664)
This commit is contained in:
parent
5cc33b4e8c
commit
07714dd5bd
1 changed files with 1 additions and 1 deletions
|
@ -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})) :
|
g_pXWaylandManager->xwaylandToWaylandCoords({PWINDOW->m_uSurface.xwayland->x, PWINDOW->m_uSurface.xwayland->y})) :
|
||||||
PWINDOW->m_vRealPosition.goalv();
|
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) {
|
if (constraint->current.committed & WLR_POINTER_CONSTRAINT_V1_STATE_CURSOR_HINT) {
|
||||||
|
|
Loading…
Reference in a new issue