allow getWindowInDirection to scan other mons

This commit is contained in:
vaxerski 2022-06-23 09:56:16 +02:00
parent 64f6818a13
commit f9745b0d3b
1 changed files with 1 additions and 1 deletions

View File

@ -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;