config: avoid using initial ws tracking for exec-once

This commit is contained in:
Vaxry
2024-07-25 15:29:39 +02:00
parent a0d15a0b7b
commit 33a5c8ce32
3 changed files with 8 additions and 4 deletions

View File

@@ -36,7 +36,7 @@ using namespace Hyprutils::String;
static std::vector<std::pair<std::string, std::string>> getHyprlandLaunchEnv() {
static auto PINITIALWSTRACKING = CConfigValue<Hyprlang::INT>("misc:initial_workspace_tracking");
if (!*PINITIALWSTRACKING)
if (!*PINITIALWSTRACKING || g_pConfigManager->isLaunchingExecOnce)
return {};
const auto PMONITOR = g_pCompositor->m_pLastMonitor;