mirror of
https://github.com/hyprwm/Hyprland
synced 2025-01-09 00:49:49 +01:00
windowrules: fix workspace exec rule with special (#3316)
modified: src/events/Windows.cpp
This commit is contained in:
parent
d3cbec2d1a
commit
824290c791
1 changed files with 2 additions and 2 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue