From e2fd4bafa71cb2b3b4d88a4b34aef37eaa2fefa6 Mon Sep 17 00:00:00 2001 From: Mestane <67807483+Mestane@users.noreply.github.com> Date: Sat, 6 Jun 2026 00:21:18 +0300 Subject: [PATCH] fix: special workspace toggle for IPC-spawned windows #73 --- src/caelestia/subcommands/toggle.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/caelestia/subcommands/toggle.py b/src/caelestia/subcommands/toggle.py index 56565f37..e20798b7 100644 --- a/src/caelestia/subcommands/toggle.py +++ b/src/caelestia/subcommands/toggle.py @@ -113,12 +113,15 @@ def run(self) -> None: return spawned = False + needs_toggle = False if self.args.workspace in self.cfg: for client in self.cfg[self.args.workspace].values(): if "enable" in client and client["enable"] and self.handle_client_config(client): spawned = True + if client.get("spawn_then_toggle"): + needs_toggle = True - if not spawned: + if not spawned or needs_toggle: hypr.dispatch("togglespecialworkspace", self.args.workspace) def get_clients(self) -> list[dict[str, Any]]: