respect window.isMapped in getWindowsOnWorkspace

This commit is contained in:
vaxerski
2022-04-11 19:56:07 +02:00
parent a8e8729230
commit f2ab2466ed
2 changed files with 2 additions and 2 deletions

View File

@@ -500,7 +500,7 @@ void CCompositor::sanityCheckWorkspaces() {
int CCompositor::getWindowsOnWorkspace(const int& id) {
int no = 0;
for (auto& w : m_lWindows) {
if (w.m_iWorkspaceID == id)
if (w.m_iWorkspaceID == id && w.m_bIsMapped)
no++;
}