Skip to content

Commit

Permalink
check window validity in getfirstwindowonworkspace
Browse files Browse the repository at this point in the history
  • Loading branch information
vaxerski committed Jul 31, 2022
1 parent 46e18e0 commit 8a4e04d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Compositor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}

Expand Down

0 comments on commit 8a4e04d

Please sign in to comment.