diff options
| author | Vaxry <43317083+vaxerski@users.noreply.github.com> | 2023-07-19 20:09:49 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-07-19 20:09:49 +0200 |
| commit | 89b87158dbf100e4177f4a010190ba5f80252eb2 (patch) | |
| tree | cacff8d4257c0e4a1f95937c969075df0b07c280 /src/managers/input/InputManager.cpp | |
| parent | ce9896204a2ab1eb4f8960d44b876cbc9d0955ac (diff) | |
internal: Wrap regions (#2750)
Diffstat (limited to 'src/managers/input/InputManager.cpp')
| -rw-r--r-- | src/managers/input/InputManager.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/managers/input/InputManager.cpp b/src/managers/input/InputManager.cpp index 8cb7f330..734df863 100644 --- a/src/managers/input/InputManager.cpp +++ b/src/managers/input/InputManager.cpp @@ -1151,9 +1151,9 @@ void CInputManager::recheckConstraint(SMouse* pMouse) { const auto PREGION = &pMouse->currentConstraint->region; if (pMouse->currentConstraint->type == WLR_POINTER_CONSTRAINT_V1_CONFINED) { - pixman_region32_copy(&pMouse->confinedTo, PREGION); + pMouse->confinedTo.set(PREGION); } else { - pixman_region32_clear(&pMouse->confinedTo); + pMouse->confinedTo.clear(); } } |
