aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorvaxerski <[email protected]>2022-08-01 00:45:06 +0200
committervaxerski <[email protected]>2022-08-01 00:45:06 +0200
commit8a4e04d789eda386b17d396c742f9ad30a3d35f7 (patch)
tree38f89b41d507f7c3b20923c41576712b7c5ef36f
parent46e18e08d1a624100e0778d31132ba3f72c1f289 (diff)
downloadHyprland-8a4e04d789eda386b17d396c742f9ad30a3d35f7.tar.gz
Hyprland-8a4e04d789eda386b17d396c742f9ad30a3d35f7.zip
check window validity in getfirstwindowonworkspacev0.9.0beta
-rw-r--r--src/Compositor.cpp2
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();
}