diff options
| author | István Donkó <istvan.donko@gmail.com> | 2023-07-18 12:12:50 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-07-18 12:12:50 +0200 |
| commit | 5c8a20be77dab288171ef4d63c3993e4bf4f0eef (patch) | |
| tree | 850ab3be7ecd99c8a201a2142432891f497a2b6a /src/managers/KeybindManager.cpp | |
| parent | d2eb4fee76f8e8158f34c38647ced42fbe25ef0d (diff) | |
fix: handle window change directions in fullscreen (#2728)
Diffstat (limited to 'src/managers/KeybindManager.cpp')
| -rw-r--r-- | src/managers/KeybindManager.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/managers/KeybindManager.cpp b/src/managers/KeybindManager.cpp index 4b2f1f63..f86134df 100644 --- a/src/managers/KeybindManager.cpp +++ b/src/managers/KeybindManager.cpp @@ -1013,8 +1013,11 @@ void CKeybindManager::moveFocusTo(std::string args) { } }; - const auto PWINDOWTOCHANGETO = PLASTWINDOW->m_bIsFullscreen ? g_pCompositor->getNextWindowOnWorkspace(PLASTWINDOW, arg == 'u' || arg == 't' || arg == 'r') : - g_pCompositor->getWindowInDirection(PLASTWINDOW, arg); + const auto PWINDOWTOCHANGETO = PLASTWINDOW->m_bIsFullscreen + ? (arg == 'd' || arg == 'b' || arg == 'r' + ? g_pCompositor->getNextWindowOnWorkspace(PLASTWINDOW, true) + : g_pCompositor->getPrevWindowOnWorkspace(PLASTWINDOW, true)) + : g_pCompositor->getWindowInDirection(PLASTWINDOW, arg); // Found window in direction, switch to it if (PWINDOWTOCHANGETO) { |
