feat(winprobe): ask Windows what it thinks of a window

komorebi for Windows hides a window by cloaking it in place, so its state cannot
show whether a window is really hidden. `record --probe-windows` follows each
window event with a read of the window's real state from Windows and, now and
then, asks komorebi whether it manages the window. The analysis compares the
two: a window komorebi shows that Windows hides, one it hides that Windows
shows, and a visible window it does not manage. macOS refuses the flag with a
message.
This commit is contained in:
LGUG2Z committed 2026-10-27 22:22:56 -07:00
1 parent e2fdd54a54
commit 52a45aa17b
19 files changed
+1531 -1

No files matched your search

+13
View File
@@ -91,6 +91,7 @@ Useful options:
| `--oslog-all` | One extra unfiltered system-wide stream (very large) |
| `--no-oslog`, `--no-komorebi` | Skip the OS trace, or skip touching komorebi entirely |
| `--no-video` | Do not capture the screen; record everything else on the same clock (see below) |
| `--probe-windows` | Windows: after each window event, record what Windows says about that window (see below) |
| `--fps N`, `--retina`, `--codec hevc\|h264` | Video settings (30 fps cap, logical points, HEVC by default) |
### Without video
@@ -101,6 +102,18 @@ display (or no Screen Recording permission), or when what is on the screen must
nothing about displays. A session made this way has no video, so video time `00:00.000` is the moment the recording
started, and there is nothing for `frames` to show.
### Probing windows on Windows
komorebi for Windows hides a window by _cloaking_ it where it is, so its state cannot show whether a
window is really hidden. `record --probe-windows` follows each window event with a read of the
window's real state from Windows (visible, cloaked, minimized, where it is) and, now and then, asks
komorebi whether it manages the window and which rules matched. `overview` then compares the two:
a window komorebi shows that Windows has hidden, one it hides that Windows shows, and a visible
window it does not manage (usually correct, with komorebi's explanation). It costs a few system
calls per event and a query to komorebi the first time a window is seen, and it reads nothing but
those facts. It does nothing on a Mac, where a hidden window is parked in a corner and the state
says so.
### Checking your setup
```