fix fullscreen cut-off when switching workspace

This commit is contained in:
vaxerski 2022-04-28 17:39:40 +02:00
parent a02646bd4b
commit 8bad02d115
1 changed files with 5 additions and 0 deletions

View File

@ -962,6 +962,11 @@ void CWindowManager::setEffectiveSizePosUsingConfig(CWindow* pWindow) {
setAWindowTop(pWindow->getDrawable());
}
if (pWindow->getFullscreen()) {
TEMPEFFECTIVEPOS = MONITOR->vecPosition;
TEMPEFFECTIVESIZE = MONITOR->vecSize;
}
pWindow->setEffectivePosition(TEMPEFFECTIVEPOS);
pWindow->setEffectiveSize(TEMPEFFECTIVESIZE);
}