mirror of
https://github.com/LGUG2Z/komorebi.git
synced 2026-11-23 08:54:16 +01:00
chore(repo): combine candidate 3b with the KDE handover scenario fix (candidate 3c)
Gate candidate 3c: wip-cand3b (cand3 + the bar e2e scenario) plus wip-u-kdefix (handover precondition in both copies of the shared e2e lib, KDE vm-commands bring_back step). The shared e2e/lib handover scenario is also what the Windows runner runs, so the Windows gate must include it.
This commit is contained in:
commit
4e2c50e526
5 files changed
+77
-3
No files matched your search
@@ -22,7 +22,20 @@ def run(platform: Platform, checks: Checks, clients: list[Client]) -> None:
|
||||
|
||||
They take a window out of the daemon's hands, so a sweep of commands does not run them. The
|
||||
window is tiled again at the end.
|
||||
|
||||
There have to be two containers or more on the focused workspace. A window that is alone there
|
||||
stays on the tile it was put on, and an emptied workspace keeps its last layout (the daemon has
|
||||
nothing to calculate), so "not on a tile of the layout" could never hold: the scenario says so
|
||||
and stops, rather than fail on a precondition that was never met.
|
||||
"""
|
||||
tiled = len(platform.state().workspace().containers)
|
||||
if not checks.check(
|
||||
"the focused workspace has two tiled containers or more, for a window to be let go of"
|
||||
f" (it has {tiled})",
|
||||
tiled >= 2,
|
||||
):
|
||||
print(describe(platform, clients))
|
||||
return
|
||||
title = platform.state().focused_title()
|
||||
target = Client(title)
|
||||
before = platform.state().managed()
|
||||
|
||||
Reference in new issue
Block a user