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
1 changed files with 3 additions and 0 deletions

View File

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