From b71d7c9007d77f78a403075b99adf8e9d43bf125 Mon Sep 17 00:00:00 2001 From: vaxerski <43317083+vaxerski@users.noreply.github.com> Date: Fri, 21 Oct 2022 10:45:12 +0100 Subject: [PATCH] minor workspace rule parsing fixes --- src/events/Windows.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/events/Windows.cpp b/src/events/Windows.cpp index a7c9bd30..8519716f 100644 --- a/src/events/Windows.cpp +++ b/src/events/Windows.cpp @@ -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) {