diff options
| author | vaxerski <43317083+vaxerski@users.noreply.github.com> | 2022-12-19 14:49:19 +0000 |
|---|---|---|
| committer | vaxerski <43317083+vaxerski@users.noreply.github.com> | 2022-12-19 14:49:19 +0000 |
| commit | 668cc93962c738d791993e581443273eaca05086 (patch) | |
| tree | 30b6c6f664c487f233f757b2066cb20b2b635d66 /src/managers/KeybindManager.cpp | |
| parent | 2f6b37e1032fbacd506978e0098807e1b334aa5d (diff) | |
refocus on special move
Diffstat (limited to 'src/managers/KeybindManager.cpp')
| -rw-r--r-- | src/managers/KeybindManager.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/managers/KeybindManager.cpp b/src/managers/KeybindManager.cpp index fffdaa4b..5a3f3392 100644 --- a/src/managers/KeybindManager.cpp +++ b/src/managers/KeybindManager.cpp @@ -947,6 +947,7 @@ void CKeybindManager::moveActiveToWorkspace(std::string args) { g_pCompositor->focusWindow(PWINDOW); } else { g_pHyprRenderer->damageMonitor(g_pCompositor->getMonitorFromID(PWINDOW->m_iMonitorID)); + g_pInputManager->refocus(); } PWINDOW->updateToplevel(); @@ -1152,7 +1153,7 @@ void CKeybindManager::toggleSplit(std::string args) { void CKeybindManager::alterSplitRatio(std::string args) { float splitratio = 0; - bool exact = false; + bool exact = false; if (args == "+" || args == "-") { Debug::log(LOG, "alterSplitRatio: using LEGACY +/-, consider switching to the Hyprland syntax."); @@ -1161,7 +1162,7 @@ void CKeybindManager::alterSplitRatio(std::string args) { if (splitratio == 0) { if (args.find("exact") == 0) { - exact = true; + exact = true; splitratio = getPlusMinusKeywordResult(args.substr(5), 0); } else { splitratio = getPlusMinusKeywordResult(args, 0); |
