refocus on special move

This commit is contained in:
vaxerski 2022-12-19 14:49:19 +00:00
parent 2f6b37e103
commit 668cc93962

View file

@ -947,6 +947,7 @@ void CKeybindManager::moveActiveToWorkspace(std::string args) {
g_pCompositor->focusWindow(PWINDOW); g_pCompositor->focusWindow(PWINDOW);
} else { } else {
g_pHyprRenderer->damageMonitor(g_pCompositor->getMonitorFromID(PWINDOW->m_iMonitorID)); g_pHyprRenderer->damageMonitor(g_pCompositor->getMonitorFromID(PWINDOW->m_iMonitorID));
g_pInputManager->refocus();
} }
PWINDOW->updateToplevel(); PWINDOW->updateToplevel();
@ -1152,7 +1153,7 @@ void CKeybindManager::toggleSplit(std::string args) {
void CKeybindManager::alterSplitRatio(std::string args) { void CKeybindManager::alterSplitRatio(std::string args) {
float splitratio = 0; float splitratio = 0;
bool exact = false; bool exact = false;
if (args == "+" || args == "-") { if (args == "+" || args == "-") {
Debug::log(LOG, "alterSplitRatio: using LEGACY +/-, consider switching to the Hyprland syntax."); 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 (splitratio == 0) {
if (args.find("exact") == 0) { if (args.find("exact") == 0) {
exact = true; exact = true;
splitratio = getPlusMinusKeywordResult(args.substr(5), 0); splitratio = getPlusMinusKeywordResult(args.substr(5), 0);
} else { } else {
splitratio = getPlusMinusKeywordResult(args, 0); splitratio = getPlusMinusKeywordResult(args, 0);