From 4fa69497ca420974eee2804f7cf6a00381a1cecf Mon Sep 17 00:00:00 2001 From: Francois Rigaut Date: Sat, 11 Jun 2022 16:37:40 +0200 Subject: [PATCH] fullscreen fix --- src/managers/KeybindManager.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/managers/KeybindManager.cpp b/src/managers/KeybindManager.cpp index b8084f96..be87e24a 100644 --- a/src/managers/KeybindManager.cpp +++ b/src/managers/KeybindManager.cpp @@ -337,8 +337,7 @@ void CKeybindManager::fullscreenActive(std::string args) { g_pLayoutManager->getCurrentLayout()->fullscreenRequestForWindow(PWINDOW, args == "1" ? eFullscreenMode::FULLSCREEN_MAXIMIZED : eFullscreenMode::FULLSCREEN_FULL); - g_pXWaylandManager->setWindowFullscreen(PWINDOW, PWINDOW->m_bIsFullscreen && args == "0"); - + g_pXWaylandManager->setWindowFullscreen(PWINDOW, PWINDOW->m_bIsFullscreen && (args == "0" || args == "")); // make all windows on the same workspace under the fullscreen window for (auto& w : g_pCompositor->m_lWindows) { if (w.m_iWorkspaceID == PWINDOW->m_iWorkspaceID)