mirror of
https://github.com/hyprwm/Hyprland
synced 2025-01-10 00:09:48 +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)
|
if (WORKSPACEARGS[WORKSPACEARGS.size() - 1].find("silent") == 0)
|
||||||
workspaceSilent = true;
|
workspaceSilent = true;
|
||||||
|
|
||||||
std::string requestedWorkspaceName = WORKSPACEARGS.join(" ", 0, workspaceSilent ? WORKSPACEARGS.size() - 1 : 0);
|
std::string requestedWorkspaceName;
|
||||||
const int REQUESTEDWORKSPACEID = getWorkspaceIDFromString(requestedWorkspaceName, requestedWorkspaceName);
|
const int REQUESTEDWORKSPACEID = getWorkspaceIDFromString(WORKSPACEARGS.join(" ", 0, workspaceSilent ? WORKSPACEARGS.size() - 1 : 0), requestedWorkspaceName);
|
||||||
|
|
||||||
if (REQUESTEDWORKSPACEID != INT_MAX) {
|
if (REQUESTEDWORKSPACEID != INT_MAX) {
|
||||||
auto pWorkspace = g_pCompositor->getWorkspaceByID(REQUESTEDWORKSPACEID);
|
auto pWorkspace = g_pCompositor->getWorkspaceByID(REQUESTEDWORKSPACEID);
|
||||||
|
|
Loading…
Reference in a new issue