mirror of
https://github.com/hyprwm/Hyprland
synced 2024-11-23 01:05:59 +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') :
|
const auto PWINDOWTOCHANGETO = PLASTWINDOW->m_bIsFullscreen
|
||||||
g_pCompositor->getWindowInDirection(PLASTWINDOW, arg);
|
? (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
|
// Found window in direction, switch to it
|
||||||
if (PWINDOWTOCHANGETO) {
|
if (PWINDOWTOCHANGETO) {
|
||||||
|
|
Loading…
Reference in a new issue