mirror of
https://github.com/hyprwm/Hyprland
synced 2024-11-09 15:26:00 +01:00
don't snap on empty hint
This commit is contained in:
parent
cf566b59ce
commit
edd0a141de
1 changed files with 2 additions and 1 deletions
|
@ -112,6 +112,7 @@ void CInputManager::mouseMoveUnified(uint32_t time, bool refocus) {
|
||||||
|
|
||||||
Vector2D hint = {PCONSTRAINT->positionHint.x, PCONSTRAINT->positionHint.y};
|
Vector2D hint = {PCONSTRAINT->positionHint.x, PCONSTRAINT->positionHint.y};
|
||||||
|
|
||||||
|
if (hint != Vector2D{-1, -1})
|
||||||
wlr_cursor_warp_closest(g_pCompositor->m_sWLRCursor, g_pCompositor->m_sSeat.mouse->mouse, CONSTRAINTPOS.x + hint.x, CONSTRAINTPOS.y + hint.y);
|
wlr_cursor_warp_closest(g_pCompositor->m_sWLRCursor, g_pCompositor->m_sSeat.mouse->mouse, CONSTRAINTPOS.x + hint.x, CONSTRAINTPOS.y + hint.y);
|
||||||
|
|
||||||
return; // don't process anything else, the cursor is locked. The surface should not receive any further events.
|
return; // don't process anything else, the cursor is locked. The surface should not receive any further events.
|
||||||
|
|
Loading…
Reference in a new issue