mirror of
https://github.com/hyprwm/Hyprland
synced 2024-12-23 04:49:48 +01:00
input: guard constraint in unconstrainMouse
This commit is contained in:
parent
f72e04d63b
commit
af15b15b4b
1 changed files with 2 additions and 1 deletions
|
@ -1290,7 +1290,8 @@ void CInputManager::unconstrainMouse() {
|
|||
wlr_pointer_constraint_v1_send_deactivated(g_pCompositor->m_sSeat.mouse->currentConstraint);
|
||||
|
||||
const auto PCONSTRAINT = constraintFromWlr(g_pCompositor->m_sSeat.mouse->currentConstraint);
|
||||
PCONSTRAINT->active = false;
|
||||
if (PCONSTRAINT)
|
||||
PCONSTRAINT->active = false;
|
||||
|
||||
g_pCompositor->m_sSeat.mouse->constraintActive = false;
|
||||
|
||||
|
|
Loading…
Reference in a new issue