From 2901bb0d2f69f90bc4e2f8fabbc78a0df8130523 Mon Sep 17 00:00:00 2001 From: vaxerski <43317083+vaxerski@users.noreply.github.com> Date: Wed, 4 Oct 2023 09:44:03 +0100 Subject: [PATCH] renderer: add further conditions to solitary recheck --- src/render/Renderer.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/render/Renderer.cpp b/src/render/Renderer.cpp index f0d00592..0d5d6d1d 100644 --- a/src/render/Renderer.cpp +++ b/src/render/Renderer.cpp @@ -2045,6 +2045,14 @@ void CHyprRenderer::recheckSolitaryForMonitor(CMonitor* pMonitor) { return; } + for (auto& w : g_pCompositor->m_vWindows) { + if (w->m_iWorkspaceID == PCANDIDATE->m_iWorkspaceID && w->m_bIsFloating && w->m_bCreatedOverFullscreen && !w->isHidden()) + return; + } + + if (pMonitor->specialWorkspaceID != 0) + return; + // check if it did not open any subsurfaces or shit int surfaceCount = 0; if (PCANDIDATE->m_bIsX11) {