mirror of
https://github.com/hyprwm/Hyprland
synced 2024-12-22 18:49:49 +01:00
keybinds: improve movefocus on fullscreen
This commit is contained in:
parent
e994b0c8b8
commit
6fec5bfbeb
1 changed files with 2 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue