diff options
| author | Vaxry <vaxry@vaxry.net> | 2024-03-10 22:31:49 +0000 |
|---|---|---|
| committer | Vaxry <vaxry@vaxry.net> | 2024-03-10 22:31:49 +0000 |
| commit | 220144276b8789d05e58df3e0452314c11b64728 (patch) | |
| tree | 8565580edf1455330a150327f3676d1b204a813d /src/layout/IHyprLayout.cpp | |
| parent | 0a1632a79f08ea5a2581832263354e06e9fab1f0 (diff) | |
layout: unfullscreen on toggle into tiled fullscreen
fixes a bug where the tiled window would be on top
Diffstat (limited to 'src/layout/IHyprLayout.cpp')
| -rw-r--r-- | src/layout/IHyprLayout.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/layout/IHyprLayout.cpp b/src/layout/IHyprLayout.cpp index 7269bab7..433434de 100644 --- a/src/layout/IHyprLayout.cpp +++ b/src/layout/IHyprLayout.cpp @@ -461,6 +461,11 @@ void IHyprLayout::changeWindowFloatingMode(CWindow* pWindow) { pWindow->moveToWorkspace(PNEWMON->specialWorkspaceID != 0 ? PNEWMON->specialWorkspaceID : PNEWMON->activeWorkspace); pWindow->updateGroupOutputs(); + const auto PWORKSPACE = g_pCompositor->getWorkspaceByID(PNEWMON->specialWorkspaceID != 0 ? PNEWMON->specialWorkspaceID : PNEWMON->activeWorkspace); + + if (PWORKSPACE->m_bHasFullscreenWindow) + g_pCompositor->setWindowFullscreen(g_pCompositor->getFullscreenWindowOnWorkspace(PWORKSPACE->m_iID), false); + // save real pos cuz the func applies the default 5,5 mid const auto PSAVEDPOS = pWindow->m_vRealPosition.goal(); const auto PSAVEDSIZE = pWindow->m_vRealSize.goal(); |
