diff options
-rw-r--r-- | src/Compositor.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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(); } |