mirror of
https://github.com/hyprwm/Hyprland
synced 2024-12-23 00:49:48 +01:00
keybinds: more intelligent fallback on silent move
This commit is contained in:
parent
70eb74c356
commit
011600ac6e
1 changed files with 2 additions and 2 deletions
|
@ -1144,8 +1144,8 @@ void CKeybindManager::moveActiveToWorkspaceSilent(std::string args) {
|
|||
|
||||
if (PNEXTCANDIDATE)
|
||||
g_pCompositor->focusWindow(PNEXTCANDIDATE);
|
||||
else if (const auto PFIRSTONWS = g_pCompositor->getFirstWindowOnWorkspace(OLDWORKSPACEIDRETURN); PFIRSTONWS)
|
||||
g_pCompositor->focusWindow(PFIRSTONWS);
|
||||
else if (const auto PWINDOWATLAST = g_pCompositor->vectorToWindowIdeal(PWINDOW->m_vRealPosition.goalv() + PWINDOW->m_vRealSize.goalv() / 2.f); PWINDOWATLAST)
|
||||
g_pCompositor->focusWindow(PWINDOWATLAST);
|
||||
else
|
||||
g_pInputManager->refocus();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue