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.
This commit is contained in:
LGUG2Z committed 2026-10-30 16:39:15 -07:00
1 parent dedcab71bc
commit 1f0ec180ca
1 file changed
+3
@@ -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)