aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorMightyPlaza <[email protected]>2023-09-15 11:05:21 +0000
committerGitHub <[email protected]>2023-09-15 12:05:21 +0100
commit824290c7917da6f43852520b9d818bc63a1dec38 (patch)
tree69070ca43158c529ee37783a67aa179816fc3e78
parentd3cbec2d1a2aa7854fe0f05c06f6bd6d8388838e (diff)
downloadHyprland-824290c7917da6f43852520b9d818bc63a1dec38.tar.gz
Hyprland-824290c7917da6f43852520b9d818bc63a1dec38.zip
windowrules: fix workspace exec rule with special (#3316)
modified: src/events/Windows.cpp
-rw-r--r--src/events/Windows.cpp4
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);