diff options
| author | MightyPlaza <123664421+MightyPlaza@users.noreply.github.com> | 2023-09-15 11:05:21 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-09-15 12:05:21 +0100 |
| commit | 824290c7917da6f43852520b9d818bc63a1dec38 (patch) | |
| tree | 69070ca43158c529ee37783a67aa179816fc3e78 /src/events/Windows.cpp | |
| parent | d3cbec2d1a2aa7854fe0f05c06f6bd6d8388838e (diff) | |
windowrules: fix workspace exec rule with special (#3316)
modified: src/events/Windows.cpp
Diffstat (limited to 'src/events/Windows.cpp')
| -rw-r--r-- | src/events/Windows.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/events/Windows.cpp b/src/events/Windows.cpp index c0c645f2..8d7c6e86 100644 --- a/src/events/Windows.cpp +++ b/src/events/Windows.cpp @@ -235,8 +235,8 @@ void Events::listener_mapWindow(void* owner, void* data) { if (WORKSPACEARGS[WORKSPACEARGS.size() - 1].find("silent") == 0) workspaceSilent = true; - std::string requestedWorkspaceName = WORKSPACEARGS.join(" ", 0, workspaceSilent ? WORKSPACEARGS.size() - 1 : 0); - const int REQUESTEDWORKSPACEID = getWorkspaceIDFromString(requestedWorkspaceName, requestedWorkspaceName); + std::string requestedWorkspaceName; + const int REQUESTEDWORKSPACEID = getWorkspaceIDFromString(WORKSPACEARGS.join(" ", 0, workspaceSilent ? WORKSPACEARGS.size() - 1 : 0), requestedWorkspaceName); if (REQUESTEDWORKSPACEID != INT_MAX) { auto pWorkspace = g_pCompositor->getWorkspaceByID(REQUESTEDWORKSPACEID); |
