xdg-shell: fix sending of suspended state

fixes #4287
This commit is contained in:
Vaxry 2023-12-29 00:26:23 +01:00
parent ddf8e01c1e
commit f9c13b614c
2 changed files with 2 additions and 1 deletions

View file

@ -2795,6 +2795,6 @@ void CCompositor::updateSuspendedStates() {
if (!w->m_bIsMapped)
continue;
w->setSuspended(w->isHidden() || !g_pHyprRenderer->shouldRenderWindow(w.get()));
w->setSuspended(w->isHidden() || !isWorkspaceVisible(w->m_iWorkspaceID));
}
}

View file

@ -1036,4 +1036,5 @@ void CWindow::setSuspended(bool suspend) {
return;
wlr_xdg_toplevel_set_suspended(m_uSurface.xdg->toplevel, suspend);
m_bSuspended = suspend;
}