mirror of
https://github.com/hyprwm/Hyprland
synced 2024-11-26 10:05:59 +01:00
update constraint on constraint state region commit
This commit is contained in:
parent
0b26b1eed6
commit
3d1b255199
2 changed files with 11 additions and 1 deletions
|
@ -243,7 +243,7 @@ void CHyprXWaylandManager::checkBorders(CWindow* pWindow) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (pWindow->m_uSurface.xwayland->parent || pWindow->m_iX11Type == 2) {
|
if (pWindow->m_iX11Type == 2) {
|
||||||
pWindow->m_bX11DoesntWantBorders = true;
|
pWindow->m_bX11DoesntWantBorders = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -1041,6 +1041,16 @@ void Events::listener_commitConstraint(void* owner, void* data) {
|
||||||
PCONSTRAINT->hintSet = true;
|
PCONSTRAINT->hintSet = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (PMOUSE->currentConstraint->current.committed & WLR_POINTER_CONSTRAINT_V1_STATE_REGION) {
|
||||||
|
if (pixman_region32_not_empty(&PMOUSE->currentConstraint->current.region)) {
|
||||||
|
pixman_region32_intersect(&PMOUSE->currentConstraint->region, &PMOUSE->currentConstraint->surface->input_region, &PMOUSE->currentConstraint->current.region);
|
||||||
|
} else {
|
||||||
|
pixman_region32_copy(&PMOUSE->currentConstraint->region, &PMOUSE->currentConstraint->surface->input_region);
|
||||||
|
}
|
||||||
|
|
||||||
|
g_pInputManager->recheckConstraint(PMOUSE);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void CInputManager::updateCapabilities() {
|
void CInputManager::updateCapabilities() {
|
||||||
|
|
Loading…
Reference in a new issue