renderer: fix missing check for surfaceCount in rechecking solitary

closes #3470
This commit is contained in:
vaxerski 2023-10-02 14:02:15 +01:00
parent 778bdf730f
commit fc1d7acd9a

View file

@ -2054,6 +2054,9 @@ void CHyprRenderer::recheckSolitaryForMonitor(CMonitor* pMonitor) {
wlr_xdg_surface_for_each_popup_surface(PCANDIDATE->m_uSurface.xdg, countSubsurfacesIter, &surfaceCount); wlr_xdg_surface_for_each_popup_surface(PCANDIDATE->m_uSurface.xdg, countSubsurfacesIter, &surfaceCount);
} }
if (surfaceCount > 1)
return;
// found one! // found one!
pMonitor->solitaryClient = PCANDIDATE; pMonitor->solitaryClient = PCANDIDATE;
} }