mirror of
https://github.com/hyprwm/Hyprland
synced 2024-11-26 21:45:59 +01:00
minor workspace rule parsing fixes
This commit is contained in:
parent
ce5f025428
commit
b71d7c9007
1 changed files with 5 additions and 5 deletions
|
@ -214,17 +214,17 @@ void Events::listener_mapWindow(void* owner, void* data) {
|
||||||
if (requestedWorkspace.contains("silent")) {
|
if (requestedWorkspace.contains("silent")) {
|
||||||
workspaceSilent = true;
|
workspaceSilent = true;
|
||||||
shouldFocus = false;
|
shouldFocus = false;
|
||||||
}
|
|
||||||
|
|
||||||
requestedWorkspace = requestedWorkspace.substr(0, requestedWorkspace.find_first_of(' '));
|
requestedWorkspace = requestedWorkspace.substr(0, requestedWorkspace.find_first_of(' '));
|
||||||
|
}
|
||||||
|
|
||||||
if (!shouldFocus && requestedWorkspace == std::to_string(PMONITOR->activeWorkspace))
|
if (!shouldFocus && requestedWorkspace == std::to_string(PMONITOR->activeWorkspace))
|
||||||
shouldFocus = true;
|
shouldFocus = true;
|
||||||
|
}
|
||||||
|
|
||||||
if (requestedWorkspace == "special") {
|
if (requestedWorkspace == "special") {
|
||||||
workspaceSilent = true;
|
workspaceSilent = true;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
if (!workspaceSilent) {
|
if (!workspaceSilent) {
|
||||||
g_pKeybindManager->m_mDispatchers["workspace"](requestedWorkspace);
|
g_pKeybindManager->m_mDispatchers["workspace"](requestedWorkspace);
|
||||||
|
|
Loading…
Reference in a new issue