diff options
| author | vaxerski <vaxry@vaxry.net> | 2022-09-20 09:55:25 +0100 |
|---|---|---|
| committer | vaxerski <vaxry@vaxry.net> | 2022-09-20 09:55:25 +0100 |
| commit | 5b6c8d5b0f9a807eaf61d7286d41a75f5e6e61e9 (patch) | |
| tree | ba1bed2833dd62b4b81f98292a4325dbc1af40ca /src/layout/DwindleLayout.cpp | |
| parent | 4dca2b945b30a8c0c02afba00f6592401d2935ca (diff) | |
fix misc fullscreen issues
Diffstat (limited to 'src/layout/DwindleLayout.cpp')
| -rw-r--r-- | src/layout/DwindleLayout.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/layout/DwindleLayout.cpp b/src/layout/DwindleLayout.cpp index a4ceefea..0d2e2868 100644 --- a/src/layout/DwindleLayout.cpp +++ b/src/layout/DwindleLayout.cpp @@ -327,6 +327,13 @@ void CHyprDwindleLayout::onWindowCreatedTiling(CWindow* pWindow) { return; } + const auto PWORKSPACE = g_pCompositor->getWorkspaceByID(pWindow->m_iWorkspaceID); + + if (PWORKSPACE->m_bHasFullscreenWindow) { + const auto PFULLWINDOW = g_pCompositor->getFullscreenWindowOnWorkspace(PWORKSPACE->m_iID); + g_pCompositor->setWindowFullscreen(PFULLWINDOW, false, FULLSCREEN_FULL); + } + // if it's the first, it's easy. Make it fullscreen. if (!OPENINGON || OPENINGON->pWindow == pWindow) { PNODE->position = PMONITOR->vecPosition + PMONITOR->vecReservedTopLeft; @@ -448,6 +455,9 @@ void CHyprDwindleLayout::onWindowRemovedTiling(CWindow* pWindow) { return; } + if (pWindow->m_bIsFullscreen) + g_pCompositor->setWindowFullscreen(pWindow, false, FULLSCREEN_FULL); + // check if it was grouped if (PNODE->isGroupMember()) { // get shit |
