input: fix xwayland constraint calcs
some minor adjustments, fixes #3028
This commit is contained in:
parent
b4f123d1f2
commit
c98a00678c
3 changed files with 10 additions and 6 deletions
|
|
@ -122,7 +122,7 @@ void Events::listener_destroyConstraint(void* owner, void* data) {
|
|||
|
||||
const auto PWINDOW = g_pCompositor->getConstraintWindow(g_pCompositor->m_sSeat.mouse);
|
||||
|
||||
if (PWINDOW && PCONSTRAINT->positionHint != Vector2D{-1, -1})
|
||||
if (PWINDOW && PCONSTRAINT->active)
|
||||
g_pInputManager->warpMouseToConstraintMiddle(PCONSTRAINT);
|
||||
|
||||
PCONSTRAINT->pMouse->currentConstraint = nullptr;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue