layout: add new_window_takes_over_fullscreen mode 2

fixes #3486
This commit is contained in:
Vaxry 2023-10-04 15:00:24 +01:00
parent 230356012b
commit 322c5cc4b9
2 changed files with 3 additions and 1 deletions

View file

@ -471,6 +471,8 @@ void Events::listener_mapWindow(void* owner, void* data) {
if (PWORKSPACE->m_bHasFullscreenWindow && !requestsFullscreen) {
if (*PNEWTAKESOVERFS == 0)
PWINDOW->m_bNoInitialFocus = true;
else if (*PNEWTAKESOVERFS == 2)
g_pCompositor->setWindowFullscreen(g_pCompositor->getFullscreenWindowOnWorkspace(PWORKSPACE->m_iID), false, FULLSCREEN_INVALID);
else
requestsFullscreen = true;
}

@ -1 +1 @@
Subproject commit 5ef42e8e8adece098848fac53c721b6eb3818fc2
Subproject commit c2aa7fd965cb7ee8bed24f4122b720aca8f0fc1e