minor workspace rule parsing fixes

This commit is contained in:
vaxerski 2022-10-21 10:45:12 +01:00
parent ce5f025428
commit b71d7c9007
1 changed files with 5 additions and 5 deletions

View File

@ -214,16 +214,16 @@ void Events::listener_mapWindow(void* owner, void* data) {
if (requestedWorkspace.contains("silent")) {
workspaceSilent = true;
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))
shouldFocus = true;
}
if (requestedWorkspace == "special") {
workspaceSilent = true;
}
if (requestedWorkspace == "special") {
workspaceSilent = true;
}
if (!workspaceSilent) {