mirror of
https://github.com/hyprwm/Hyprland.git
synced 2024-10-05 17:17:47 +03:00
keybinds: focus last window on workspace change to another mon
This commit is contained in:
parent
b0a82c04df
commit
e4d6695375
@ -859,8 +859,11 @@ void CKeybindManager::changeworkspace(std::string args) {
|
||||
|
||||
PMONITORWORKSPACEOWNER->changeWorkspace(pWorkspaceToChangeTo, false, true);
|
||||
|
||||
if (PMONITOR != PMONITORWORKSPACEOWNER)
|
||||
if (PMONITOR != PMONITORWORKSPACEOWNER) {
|
||||
g_pCompositor->warpCursorTo(PMONITORWORKSPACEOWNER->middle());
|
||||
if (const auto PLAST = pWorkspaceToChangeTo->getLastFocusedWindow(); PLAST)
|
||||
g_pCompositor->focusWindow(PLAST);
|
||||
}
|
||||
|
||||
if (BISWORKSPACECURRENT) {
|
||||
if (*PALLOWWORKSPACECYCLES)
|
||||
|
Loading…
Reference in New Issue
Block a user