From 421f5fb221322c028092dcf3a943f26a30d45b9f Mon Sep 17 00:00:00 2001 From: eriedaberrie <64395218+eriedaberrie@users.noreply.github.com> Date: Tue, 17 Oct 2023 03:41:27 -0700 Subject: [PATCH] events: make new windows taking over fullscreen keep the existing mode (#3588) --- src/events/Windows.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/events/Windows.cpp b/src/events/Windows.cpp index 84582537..a77c298f 100644 --- a/src/events/Windows.cpp +++ b/src/events/Windows.cpp @@ -473,6 +473,8 @@ void Events::listener_mapWindow(void* owner, void* data) { PWINDOW->m_bNoInitialFocus = true; else if (*PNEWTAKESOVERFS == 2) g_pCompositor->setWindowFullscreen(g_pCompositor->getFullscreenWindowOnWorkspace(PWORKSPACE->m_iID), false, FULLSCREEN_INVALID); + else if (PWORKSPACE->m_efFullscreenMode == FULLSCREEN_MAXIMIZED) + requestsMaximize = true; else requestsFullscreen = true; }