From 28867758c486b12ebe387d72bba2be67a7dc8a2a Mon Sep 17 00:00:00 2001 From: vaxerski Date: Sun, 14 Aug 2022 16:39:56 +0200 Subject: better fix the last fix --- src/layout/MasterLayout.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/layout/MasterLayout.cpp') diff --git a/src/layout/MasterLayout.cpp b/src/layout/MasterLayout.cpp index 1f647c63..71c65125 100644 --- a/src/layout/MasterLayout.cpp +++ b/src/layout/MasterLayout.cpp @@ -320,6 +320,9 @@ void CHyprMasterLayout::fullscreenRequestForWindow(CWindow* pWindow, eFullscreen if (!g_pCompositor->windowValidMapped(pWindow)) return; + if (!g_pCompositor->isWorkspaceVisible(pWindow->m_iWorkspaceID)) + return; + if (on == pWindow->m_bIsFullscreen) return; // ignore -- cgit v1.2.3