mirror of
https://github.com/hyprwm/Hyprland
synced 2024-12-23 01:29:50 +01:00
check window validity in getfirstwindowonworkspace
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) {
|
||||
for (auto& w : m_vWindows) {
|
||||
if (w->m_iWorkspaceID == id)
|
||||
if (w->m_iWorkspaceID == id && w->m_bIsMapped && !w->m_bHidden)
|
||||
return w.get();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue