input: warp in unconstrainMouse
XWayland coord translation would fuck up if we did this in destroyConstraint
This commit is contained in:
parent
32f4059b37
commit
28a90d6055
1 changed files with 7 additions and 1 deletions
|
|
@ -1231,6 +1231,12 @@ void CInputManager::unconstrainMouse() {
|
||||||
g_pXWaylandManager->activateSurface(CONSTRAINTWINDOW->m_pWLSurface.wlr(), false);
|
g_pXWaylandManager->activateSurface(CONSTRAINTWINDOW->m_pWLSurface.wlr(), false);
|
||||||
|
|
||||||
wlr_pointer_constraint_v1_send_deactivated(g_pCompositor->m_sSeat.mouse->currentConstraint);
|
wlr_pointer_constraint_v1_send_deactivated(g_pCompositor->m_sSeat.mouse->currentConstraint);
|
||||||
|
|
||||||
|
const auto PCONSTRAINT = constraintFromWlr(g_pCompositor->m_sSeat.mouse->currentConstraint);
|
||||||
|
warpMouseToConstraintMiddle(PCONSTRAINT);
|
||||||
|
PCONSTRAINT->hintSet = false;
|
||||||
|
PCONSTRAINT->positionHint = {-1, -1};
|
||||||
|
|
||||||
g_pCompositor->m_sSeat.mouse->constraintActive = false;
|
g_pCompositor->m_sSeat.mouse->constraintActive = false;
|
||||||
|
|
||||||
// TODO: its better to somehow detect the workspace...
|
// TODO: its better to somehow detect the workspace...
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue