From 34413d1f367b56e17614ee0455b6bf0b61a5aed1 Mon Sep 17 00:00:00 2001 From: Vaxry Date: Wed, 24 Apr 2024 02:05:56 +0100 Subject: [PATCH] tokens: fix initial workspace token ignoring special ref #5726 --- src/managers/KeybindManager.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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> getHyprlandLaunchEnv() { std::vector> 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; }