diff options
| author | vaxerski <43317083+vaxerski@users.noreply.github.com> | 2022-06-23 09:56:16 +0200 |
|---|---|---|
| committer | vaxerski <43317083+vaxerski@users.noreply.github.com> | 2022-06-23 09:56:16 +0200 |
| commit | f9745b0d3b85c447c3c8d3421db638f1087a1e91 (patch) | |
| tree | e258fb7dae6d08042f055a741e792ea2b7e33d10 /src/Compositor.cpp | |
| parent | 64f6818a134057b84eb1aac473567b90a75d75d0 (diff) | |
allow getWindowInDirection to scan other mons
Diffstat (limited to 'src/Compositor.cpp')
| -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 a5339948..1861e5aa 100644 --- a/src/Compositor.cpp +++ b/src/Compositor.cpp @@ -777,7 +777,7 @@ CWindow* CCompositor::getWindowInDirection(CWindow* pWindow, char dir) { CWindow* longestIntersectWindow = nullptr; for (auto& w : m_lWindows) { - if (&w == pWindow || !windowValidMapped(&w) || w.m_bIsFloating || w.m_iWorkspaceID != pWindow->m_iWorkspaceID) + if (&w == pWindow || !windowValidMapped(&w) || w.m_bIsFloating || !isWorkspaceVisible(w.m_iWorkspaceID)) continue; const auto POSB = w.m_vPosition; |
