diff options
| author | fazzi <18248986+fxzzi@users.noreply.github.com> | 2026-05-04 17:00:56 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-05-04 17:00:56 +0100 |
| commit | eff3bfe261e90b8950b59379ca7815f735a7aab6 (patch) | |
| tree | 5d4bef57fdd9130c47fbd6a24772bbbd321d61c0 /src/managers/input/InputManager.cpp | |
| parent | 2824ffdda04d8471cd8a4ff30641ea06e4d80cf5 (diff) | |
windows/focus: add fallbacks when focussing workspaces (#14270)
Diffstat (limited to 'src/managers/input/InputManager.cpp')
| -rw-r--r-- | src/managers/input/InputManager.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/managers/input/InputManager.cpp b/src/managers/input/InputManager.cpp index b6f38433..65a98181 100644 --- a/src/managers/input/InputManager.cpp +++ b/src/managers/input/InputManager.cpp @@ -1694,7 +1694,8 @@ bool CInputManager::refocusLastWindow(PHLMONITOR pMonitor) { foundSurface = nullptr; } - if (!foundSurface && Desktop::focusState()->window() && Desktop::focusState()->window()->m_workspace && Desktop::focusState()->window()->m_workspace->isVisibleNotCovered()) { + if (!foundSurface && Desktop::focusState()->window() && Desktop::focusState()->window()->m_monitor == pMonitor && Desktop::focusState()->window()->m_workspace && + Desktop::focusState()->window()->m_workspace->isVisibleNotCovered()) { // then the last focused window if we're on the same workspace as it const auto PLASTWINDOW = Desktop::focusState()->window(); Desktop::focusState()->fullWindowFocus(PLASTWINDOW, Desktop::FOCUS_REASON_FFM); |
