mirror of
https://github.com/hyprwm/Hyprland.git
synced 2024-12-01 18:55:02 +03:00
fix: handle window change directions in fullscreen (#2728)
This commit is contained in:
parent
d2eb4fee76
commit
5c8a20be77
@ -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 New Issue
Block a user