mirror of
https://github.com/hyprwm/Hyprland
synced 2024-11-07 18:45:59 +01:00
refocus on special move
This commit is contained in:
parent
2f6b37e103
commit
668cc93962
1 changed files with 3 additions and 2 deletions
|
@ -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);
|
||||||
|
|
Loading…
Reference in a new issue