This commit is contained in:
vaxerski 2021-12-24 17:01:55 +01:00
parent e0034f7386
commit fa35537903

View file

@ -366,10 +366,8 @@ void CWindowManager::refreshDirtyWindows() {
continue; continue;
// first and foremost, let's check if the window isn't on a hidden workspace // first and foremost, let's check if the window isn't on a hidden workspace
// or that it is not a non-fullscreen window in a fullscreen workspace thats under
// or an animated workspace // or an animated workspace
if (!isWorkspaceVisible(window.getWorkspaceID()) if (!isWorkspaceVisible(window.getWorkspaceID())
|| (bHasFullscreenWindow && !window.getFullscreen() && (window.getUnderFullscreen() || !window.getIsFloating()))
|| PWORKSPACE->getAnimationInProgress()) { || PWORKSPACE->getAnimationInProgress()) {
Values[0] = (int)window.getRealPosition().x + (int)PWORKSPACE->getCurrentOffset().x; Values[0] = (int)window.getRealPosition().x + (int)PWORKSPACE->getCurrentOffset().x;
@ -392,6 +390,18 @@ void CWindowManager::refreshDirtyWindows() {
continue; continue;
} }
// or that it is not a non-fullscreen window in a fullscreen workspace thats under
if (bHasFullscreenWindow && !window.getFullscreen() && (window.getUnderFullscreen() || !window.getIsFloating())) {
Values[0] = 150000;
Values[1] = 150000;
if (VECTORDELTANONZERO(window.getLastUpdatePosition(), Vector2D(Values[0], Values[1]))) {
xcb_configure_window(DisplayConnection, window.getDrawable(), XCB_CONFIG_WINDOW_X | XCB_CONFIG_WINDOW_Y, Values);
window.setLastUpdatePosition(Vector2D(Values[0], Values[1]));
}
continue;
}
// Fullscreen window. No border, all screen. // Fullscreen window. No border, all screen.
if (window.getFullscreen()) { if (window.getFullscreen()) {
Values[0] = 0; Values[0] = 0;