summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorvaxerski <43317083+vaxerski@users.noreply.github.com>2022-06-11 17:06:19 +0200
committerGitHub <noreply@github.com>2022-06-11 17:06:19 +0200
commit94528bcdbc72a8a3a18dc309bfe678915f9a27d5 (patch)
tree70c9f25fb8aef50069564f857074e36c0100bd13 /src
parentdc5cc15474813f48ca5754d0ac89ee90e437a07c (diff)
parent4fa69497ca420974eee2804f7cf6a00381a1cecf (diff)
Merge pull request #194 from frigaut/main
fullscreen fix
Diffstat (limited to 'src')
-rw-r--r--src/managers/KeybindManager.cpp3
1 files changed, 1 insertions, 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)