docs(repo): the four upstream fixes, and what each means for kfde

This commit is contained in:
LGUG2Z committed 2026-10-30 12:34:23 -07:00
1 parent 50160477e6
commit 4c5606f235
1 file changed
+28 -16
+28 -16
View File
@@ -36,14 +36,14 @@ runs, and goes stale when the code changes.
| `closing` | a closed window leaves the state, and the others take its room | pass | pass |
| `resize` | dragging the edge two tiles share moves it by what the pointer moved | pass | pass on kfw's `0ffc502c`, **fails** on its master |
| `commands` | every layout, and about 216 commands, leave the daemon healthy | pass, none skipped | pass with a second display, none skipped, when the host is quiet |
| `commands.unknown_monitor` | a window sent to a monitor that does not exist stays managed | **known failure** | **known failure** |
| `commands.unknown_monitor` | a window sent to a monitor that does not exist stays managed | pass (fixed) | **known failure** on `0ffc502c`; fixed on kfw's `next`, to be confirmed |
| `rules` | initial, permanent and ignore rules by title, and that cleared rules stop applying | see below | pass |
| `rules_class` | a workspace rule and an ignore rule by class (the app id on KDE) send a window or leave it alone | pass | pass |
| `rules_exe` | the same by the program that opened the window; the rule's id is `platform.exe_id(program)`, as kfw's has the `.exe` | pass | pass |
| `config_reload` | rewriting the `komorebi.json` the daemon runs on changes its names, layout and rules | pass | pass |
| `locking` | the screen is locked, a window moved, and unlocked: every window is in its tile again (session suite `core-lock`) | pass | pass |
| `hotplug` | an unplugged display takes its windows to the other, a plugged one is a monitor | pass | pass |
| `placement` | the placement rules of the config put a window first, last, or at a number | pass | 4 of 5 cases pass, **known failure**: the number 2 |
| `placement` | the placement rules of the config put a window first, last, or at a number | pass | 4 of 5 cases pass, **known failure** on `0ffc502c`: the number 2; fixed on kfw's `next`, to be confirmed |
| `startup_rules` | the workspace rules of the config apply to a window open before the daemon and to one after | pass | pass |
| `focus_follows_mouse` | the pointer over a window gives it the focus when it is on, not when it is off | pass | pass |
| `lifecycle` | a daemon that stops and starts again takes the windows that were in view up again | pass | pass |
@@ -139,20 +139,23 @@ Only on one port:
class e2e-left` adds nothing and the window is managed. Seen on kfde; the scenarios use different
names (`rules_exe`). kfw does the same.
**A window sent to a monitor that does not exist is lost, on both ports.** After
**A window sent to a monitor that does not exist was lost, on both ports. Fixed.** After
`komorebic send-to-monitor 7` (or `move-to-monitor 7`) on a desktop with one monitor, the daemon
stops managing the focused window and leaves it on the screen with nothing tiling it. On kfw this
stopped managing the focused window and left it on the screen with nothing tiling it. On kfw this
was seen on a Windows guest: three windows managed and present, then two managed and three
present, with the command exiting 0 and printing nothing. On kfde `core-e2e` failed the scenario's
check on a real KWin, and the windows after it. kfde's code shows how:
`WindowManager::move_container_to_monitor` takes the focused container out of its workspace with
`remove_focused_container()` and only then looks the monitor up, with an error for one that is not
there, so the container is gone when the error is returned. This is not fixed, on either port, and is a
**known failure to follow up on later**: `commands.unknown_monitor` takes a `known_failure`
reason, with which its checks are recorded by `Checks.known_failure`. They do not fail the suite,
the totals say `known failures: N`, and one that holds fails the suite to say the marker can go.
`core-e2e` runs it last (section 12c), because the window is lost. The sweep of `commands` is not affected on kfde, which has two outputs, and on
kfw the sweep now plugs in a second display first.
check on a real KWin, and the windows after it. The cause:
`WindowManager::move_container_to_monitor` took the focused container out of its workspace with
`remove_focused_container()` and only then looked the monitor up, so the container was gone when
the error was returned; `move_workspace_to_monitor` did the same with the workspace. kfw fixed it
upstream (`837ca257`: check the index first, so the command fails and nothing moves) and the same
fix is in kfde (`017edb40`, with a unit test for each function). On a real KWin `core-e2e` passes
`commands.unknown_monitor` with no known-failure marker (292 checks, 0 failed). On kfw it is fixed on
the `next` branch and is to be confirmed by a Windows run; until then the Windows runner records
it as a known failure on a build without the fix. `commands.unknown_monitor` can still take a
`known_failure` reason, which `Checks.known_failure` records: such a check does not fail the suite,
and one that holds does, to say the marker can go. The sweep of `commands` is not affected on kfde,
which has two outputs, and on kfw the sweep plugs in a second display first.
**`placement` on kfw.** The rule `initial_window_placement_rules: 2`, with the place as a JSON
number, makes `komorebi.exe` exit at start with `data did not match any variant of untagged enum
@@ -163,8 +166,11 @@ from the enum rather than the hand-written deserializer, describes the type as o
(`{"Placement": ...}` or `{"Index": n}`), which matches neither form. It is a known failure to follow up on later: `placement.run` takes the
description of the case and the reason, and records the case that way, whether the daemon does not
start or puts the windows elsewhere. The other four cases give the same order on both ports.
Fixed upstream in kfw (`3b424dd7`: accept an integer as well as a string, and a schema written by hand);
kfde already had the same fix, and its unit test is in `komorebi/src/core/mod.rs`. It is to be
confirmed on a Windows run of kfw's `next`.
**`hotplug` on kfw.** After a display is unplugged, Windows reports one display within a second,
**`hotplug` on kfw (fixed upstream, to be confirmed).** After a display is unplugged, Windows reports one display within a second,
but kfw's `komorebic state` can keep listing two monitors for as long as it is watched (90 s,
every round of a probe, on master as well as on `0ffc502c`). The daemon's log loops: "potential
monitor removal detected (2 vs 1), verifying in 3s", "verified monitor removal", "removing
@@ -176,8 +182,14 @@ guards with `if let (Some, Some)` and this one does not. Real monitors have seri
may show only with virtual displays. `hotplug` passed 19/19 in several runs and failed that one
check (18/19) in two of three runs of a five-run series, so it is not marked a known failure: a
known failure that holds fails the suite, and this one holds only sometimes. kfde is not
affected: it has no reconciliator loop of this kind, and `hotplug` passes 34/0 there. Until
someone decides about the fix, the check stays red when it fails.
affected: it has no reconciliator loop of this kind, and `hotplug` passes 34/0 there. The kfw
session's reading was right: `None == None` made a display without a serial number match the one
that stayed (and the shared `UNKNOWN` device id did the same for displays with no device path).
Fixed upstream in `5c8e4770`: a serial number identifies a display only when both have one and it
is not empty, a display with no device path is told apart by its name, and the removal goes by index.
kfde needs none of it: its displays are told apart by the serial number when KWin gives one and by
the output's own name when it does not, so two outputs never match each other without a name.
The fix is on kfw's `next`; a Windows run of `hotplug` there will confirm it.
**`focus_follows_mouse` on kfw.** The scenario's last check failed on kfw five times in five, and
a replica of its steps passed. The scenario was at fault: it moved the pointer over the window that