From 1f0ec180ca9325e8f153d65d714297c1d6c1e51c Mon Sep 17 00:00:00 2001 From: LGUG2Z Date: Fri, 30 Oct 2026 16:20:00 -0700 Subject: [PATCH] test(nix): resize presses wait for the frames to match the layout A frame that is still on its way to its tile is not where its border is: a press on it lands on the window, and a drop on another tile swaps windows. kfw saw it once in three runs of edge_cases. The press now waits until every window is where the daemon's layout says. --- nix/tests/vm/lib/komorebi_vm/core/scenarios/resize.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/nix/tests/vm/lib/komorebi_vm/core/scenarios/resize.py b/nix/tests/vm/lib/komorebi_vm/core/scenarios/resize.py index f85aa266..4baa9686 100644 --- a/nix/tests/vm/lib/komorebi_vm/core/scenarios/resize.py +++ b/nix/tests/vm/lib/komorebi_vm/core/scenarios/resize.py @@ -231,6 +231,9 @@ def _problems( name, grab, dx, dy = case area = platform.work_area() platform.komorebic("retile") + # the frames follow the tiles a moment later, and a press on a frame that is still on its way + # lands on the window and not on its border (a drop on another tile, a swap) + platform.wait_for(lambda: tiled(platform, clients), timeout=10) before = _settled(platform, clients) tiles_before = _tiles(platform)