diff options
| author | vaxerski <43317083+vaxerski@users.noreply.github.com> | 2023-04-14 01:42:55 +0100 |
|---|---|---|
| committer | vaxerski <43317083+vaxerski@users.noreply.github.com> | 2023-04-14 01:42:55 +0100 |
| commit | 011600ac6e7f6d52f69d0890bffba519a9d81e3f (patch) | |
| tree | dac1632b982b2bfc43ad68402f70158d3ffffd8f /src/managers/KeybindManager.cpp | |
| parent | 70eb74c356d291f4b5e048abef7772864a4f95f1 (diff) | |
keybinds: more intelligent fallback on silent move
Diffstat (limited to 'src/managers/KeybindManager.cpp')
| -rw-r--r-- | src/managers/KeybindManager.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/managers/KeybindManager.cpp b/src/managers/KeybindManager.cpp index cdb9a637..4d8cb238 100644 --- a/src/managers/KeybindManager.cpp +++ b/src/managers/KeybindManager.cpp @@ -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(); } |
