From 920727cbbaf8e8f244bb60f3731148773924034e Mon Sep 17 00:00:00 2001 From: vaxerski Date: Sun, 14 Aug 2022 16:34:40 +0200 Subject: [PATCH] fix crash with fullscreen requests --- src/Compositor.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/Compositor.cpp b/src/Compositor.cpp index a30f6db0b..254056660 100644 --- a/src/Compositor.cpp +++ b/src/Compositor.cpp @@ -1411,6 +1411,10 @@ void CCompositor::setWindowFullscreen(CWindow* pWindow, bool on, eFullscreenMode if (!windowValidMapped(pWindow)) return; + if (!isWorkspaceVisible(pWindow->m_iWorkspaceID)) { + g_pKeybindManager->changeworkspace("[internal]" + std::to_string(pWindow->m_iWorkspaceID)); + } + g_pLayoutManager->getCurrentLayout()->fullscreenRequestForWindow(pWindow, mode, on); g_pXWaylandManager->setWindowFullscreen(pWindow, pWindow->m_bIsFullscreen && mode == FULLSCREEN_FULL);