window: override noMaximize if new window takes over fullscreen (#6812) (#6870)

This commit is contained in:
Khiet Tam Nguyen 2024-07-14 04:44:32 +10:00 committed by GitHub
parent ed6c701144
commit bc6b0880dd
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -465,9 +465,11 @@ void Events::listener_mapWindow(void* owner, void* data) {
PWINDOW->m_bNoInitialFocus = true;
else if (*PNEWTAKESOVERFS == 2)
g_pCompositor->setWindowFullscreen(g_pCompositor->getFullscreenWindowOnWorkspace(PWINDOW->m_pWorkspace->m_iID), false, FULLSCREEN_INVALID);
else if (PWINDOW->m_pWorkspace->m_efFullscreenMode == FULLSCREEN_MAXIMIZED)
else if (PWINDOW->m_pWorkspace->m_efFullscreenMode == FULLSCREEN_MAXIMIZED) {
requestsMaximize = true;
else
if (*PNEWTAKESOVERFS == 1)
overridingNoMaximize = true;
} else
requestsFullscreen = true;
}