Skip to content

Commit

Permalink
tokens: fix initial workspace token ignoring special
Browse files Browse the repository at this point in the history
  • Loading branch information
vaxerski committed Apr 24, 2024
1 parent 31d055f commit 34413d1
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/managers/KeybindManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 34413d1

Please sign in to comment.