diff options
author | vaxerski <[email protected]> | 2023-03-27 15:19:27 +0100 |
---|---|---|
committer | vaxerski <[email protected]> | 2023-03-27 15:19:27 +0100 |
commit | 6fec5bfbeb80a5b2231af2ac5710a8b9c8bbc08a (patch) | |
tree | 4b255f6ac2f5d993817369cf8f3373fbd0e1e1d0 | |
parent | e994b0c8b881de5145e583720abbd9ff27d727ac (diff) | |
download | Hyprland-6fec5bfbeb80a5b2231af2ac5710a8b9c8bbc08a.tar.gz Hyprland-6fec5bfbeb80a5b2231af2ac5710a8b9c8bbc08a.zip |
keybinds: improve movefocus on fullscreen
-rw-r--r-- | src/managers/KeybindManager.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/managers/KeybindManager.cpp b/src/managers/KeybindManager.cpp index 0ace08d3..d854b25d 100644 --- a/src/managers/KeybindManager.cpp +++ b/src/managers/KeybindManager.cpp @@ -1150,7 +1150,8 @@ void CKeybindManager::moveFocusTo(std::string args) { } }; - const auto PWINDOWTOCHANGETO = g_pCompositor->getWindowInDirection(PLASTWINDOW, arg); + const auto PWINDOWTOCHANGETO = PLASTWINDOW->m_bIsFullscreen ? g_pCompositor->getNextWindowOnWorkspace(PLASTWINDOW, arg == 'u' || arg == 't' || arg == 'r') : + g_pCompositor->getWindowInDirection(PLASTWINDOW, arg); if (PWINDOWTOCHANGETO) { switchToWindow(PWINDOWTOCHANGETO); |