diff options
author | Vaxry <[email protected]> | 2024-04-24 02:05:56 +0100 |
---|---|---|
committer | Vaxry <[email protected]> | 2024-04-24 02:06:13 +0100 |
commit | 34413d1f367b56e17614ee0455b6bf0b61a5aed1 (patch) | |
tree | 76cab076893efbb110a0f39ef9630c39ff468de7 | |
parent | 31d055f6d487bd72fca5b10822e3f3bd95e94cc9 (diff) | |
download | Hyprland-34413d1f367b56e17614ee0455b6bf0b61a5aed1.tar.gz Hyprland-34413d1f367b56e17614ee0455b6bf0b61a5aed1.zip |
tokens: fix initial workspace token ignoring special
ref #5726
-rw-r--r-- | src/managers/KeybindManager.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/managers/KeybindManager.cpp b/src/managers/KeybindManager.cpp index 040ae245..5a9fef8b 100644 --- a/src/managers/KeybindManager.cpp +++ b/src/managers/KeybindManager.cpp @@ -31,7 +31,10 @@ static std::vector<std::pair<std::string, std::string>> getHyprlandLaunchEnv() { std::vector<std::pair<std::string, std::string>> result; - result.push_back(std::make_pair<>("HL_INITIAL_WORKSPACE_TOKEN", g_pTokenManager->registerNewToken(PMONITOR->activeWorkspace->getConfigName(), std::chrono::minutes(2)))); + result.push_back(std::make_pair<>( + "HL_INITIAL_WORKSPACE_TOKEN", + g_pTokenManager->registerNewToken(PMONITOR->activeSpecialWorkspace ? PMONITOR->activeSpecialWorkspace->getConfigName() : PMONITOR->activeWorkspace->getConfigName(), + std::chrono::minutes(2)))); return result; } |