From 8a4e04d789eda386b17d396c742f9ad30a3d35f7 Mon Sep 17 00:00:00 2001 From: vaxerski Date: Mon, 1 Aug 2022 00:45:06 +0200 Subject: [PATCH] check window validity in getfirstwindowonworkspace --- src/Compositor.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Compositor.cpp b/src/Compositor.cpp index 1244a6b2..8cb57db9 100644 --- a/src/Compositor.cpp +++ b/src/Compositor.cpp @@ -810,7 +810,7 @@ int CCompositor::getWindowsOnWorkspace(const int& id) { CWindow* CCompositor::getFirstWindowOnWorkspace(const int& id) { for (auto& w : m_vWindows) { - if (w->m_iWorkspaceID == id) + if (w->m_iWorkspaceID == id && w->m_bIsMapped && !w->m_bHidden) return w.get(); }