From fa2d81b649aaccd936193ac4341431c0836a321b Mon Sep 17 00:00:00 2001 From: vaxerski Date: Fri, 16 Sep 2022 21:17:03 +0100 Subject: [PATCH] fix animation issues with workspace silent --- src/Compositor.cpp | 2 -- src/layout/DwindleLayout.cpp | 3 --- src/layout/MasterLayout.cpp | 3 --- 3 files changed, 8 deletions(-) diff --git a/src/Compositor.cpp b/src/Compositor.cpp index 565ec86c..281b1de9 100644 --- a/src/Compositor.cpp +++ b/src/Compositor.cpp @@ -1605,8 +1605,6 @@ void CCompositor::setWindowFullscreen(CWindow* pWindow, bool on, eFullscreenMode if (!windowValidMapped(pWindow)) return; - focusWindow(pWindow); - g_pLayoutManager->getCurrentLayout()->fullscreenRequestForWindow(pWindow, mode, on); g_pXWaylandManager->setWindowFullscreen(pWindow, pWindow->m_bIsFullscreen && mode == FULLSCREEN_FULL); diff --git a/src/layout/DwindleLayout.cpp b/src/layout/DwindleLayout.cpp index 0d5cfde3..ccd3f5ae 100644 --- a/src/layout/DwindleLayout.cpp +++ b/src/layout/DwindleLayout.cpp @@ -682,9 +682,6 @@ void CHyprDwindleLayout::fullscreenRequestForWindow(CWindow* pWindow, eFullscree if (!g_pCompositor->windowValidMapped(pWindow)) return; - if (!g_pCompositor->isWorkspaceVisible(pWindow->m_iWorkspaceID)) - return; - if (on == pWindow->m_bIsFullscreen) return; // ignore diff --git a/src/layout/MasterLayout.cpp b/src/layout/MasterLayout.cpp index 759c46d0..7406aa9b 100644 --- a/src/layout/MasterLayout.cpp +++ b/src/layout/MasterLayout.cpp @@ -326,9 +326,6 @@ 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