aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorvaxerski <[email protected]>2023-03-27 15:19:27 +0100
committervaxerski <[email protected]>2023-03-27 15:19:27 +0100
commit6fec5bfbeb80a5b2231af2ac5710a8b9c8bbc08a (patch)
tree4b255f6ac2f5d993817369cf8f3373fbd0e1e1d0
parente994b0c8b881de5145e583720abbd9ff27d727ac (diff)
downloadHyprland-6fec5bfbeb80a5b2231af2ac5710a8b9c8bbc08a.tar.gz
Hyprland-6fec5bfbeb80a5b2231af2ac5710a8b9c8bbc08a.zip
keybinds: improve movefocus on fullscreen
-rw-r--r--src/managers/KeybindManager.cpp3
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);