renderer: add further conditions to solitary recheck

This commit is contained in:
vaxerski 2023-10-04 09:44:03 +01:00
parent d61e4f9ad7
commit 2901bb0d2f

View file

@ -2045,6 +2045,14 @@ void CHyprRenderer::recheckSolitaryForMonitor(CMonitor* pMonitor) {
return; 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 // check if it did not open any subsurfaces or shit
int surfaceCount = 0; int surfaceCount = 0;
if (PCANDIDATE->m_bIsX11) { if (PCANDIDATE->m_bIsX11) {