From 93c786242bac011f636784f4bfb6ea5854a7e3c9 Mon Sep 17 00:00:00 2001 From: LGUG2Z Date: Thu, 29 Oct 2026 01:03:02 -0700 Subject: [PATCH] feat(nix): give the sweep's toggle-focus-follows-mouse its option kfw declares the subcommand with arg_required_else_help, so without an argument it prints help and exits 2, although the option has a default. kfde accepts the same option, so the sweep passes it explicitly: --implementation windows, the default on both ports. --- nix/tests/vm/lib/komorebi_vm/core/scenarios/commands.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/nix/tests/vm/lib/komorebi_vm/core/scenarios/commands.py b/nix/tests/vm/lib/komorebi_vm/core/scenarios/commands.py index 55dae21e..836e0859 100644 --- a/nix/tests/vm/lib/komorebi_vm/core/scenarios/commands.py +++ b/nix/tests/vm/lib/komorebi_vm/core/scenarios/commands.py @@ -24,6 +24,10 @@ LAYOUTS: tuple[str, ...] = ( "scrolling", ) +# A command with an option that has a default is given the option here when one port requires some +# argument: kfw's `toggle-focus-follows-mouse` prints its help and exits 2 without one, and kfde's +# accepts it. +# # Every command the ports share that changes something, in an order that leaves the daemon with # windows to act on. `{config}` is the path of a configuration file for `replace-configuration`. SWEEP: tuple[str, ...] = ( @@ -207,8 +211,8 @@ SWEEP: tuple[str, ...] = ( "toggle-mouse-follows-focus", "focus-follows-mouse enable", "focus-follows-mouse disable", - "toggle-focus-follows-mouse", - "toggle-focus-follows-mouse", + "toggle-focus-follows-mouse --implementation windows", + "toggle-focus-follows-mouse --implementation windows", "transparency enable", "transparency-alpha 150", "toggle-transparency",