check window validity in getfirstwindowonworkspace
Some checks failed
Some checks failed
This commit is contained in:
parent
46e18e08d1
commit
8a4e04d789
1 changed files with 1 additions and 1 deletions
|
|
@ -810,7 +810,7 @@ int CCompositor::getWindowsOnWorkspace(const int& id) {
|
||||||
|
|
||||||
CWindow* CCompositor::getFirstWindowOnWorkspace(const int& id) {
|
CWindow* CCompositor::getFirstWindowOnWorkspace(const int& id) {
|
||||||
for (auto& w : m_vWindows) {
|
for (auto& w : m_vWindows) {
|
||||||
if (w->m_iWorkspaceID == id)
|
if (w->m_iWorkspaceID == id && w->m_bIsMapped && !w->m_bHidden)
|
||||||
return w.get();
|
return w.get();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue