internal: Wrap regions (#2750)
This commit is contained in:
parent
ce9896204a
commit
89b87158db
14 changed files with 297 additions and 250 deletions
|
|
@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue