mirror of
https://github.com/hyprwm/Hyprland
synced 2024-11-08 17:06:00 +01:00
fix: handle window change directions in fullscreen (#2728)
This commit is contained in:
parent
d2eb4fee76
commit
5c8a20be77
1 changed files with 5 additions and 2 deletions
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue