mirror of https://github.com/hyprwm/Hyprland
allow getWindowInDirection to scan other mons
This commit is contained in:
parent
64f6818a13
commit
f9745b0d3b
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue