mirror of
https://github.com/LGUG2Z/komorebi.git
synced 2026-12-03 13:44:14 +01:00
A ghost tile is a tile of the layout holding a window a person cannot see: one komorebi has in front on a workspace that is showing, and that was never on screen, on at least two reads over half a second or still so at the last. Anything less is a transition (a workspace switch, an application starting up) or something a person did. How the recording shows it depends on the host, since only one can be asked: - komorebi for Windows: Windows says the window is cloaked or not visible on every probe of it, and never on screen or minimized. This needs a recording made with --probe-windows; without probes there are none here, which is not knowing and not none. - komorebi for Mac: macOS cannot be asked, but komorebi's state has each window's frame, read live from the accessibility API. A ghost is a window whose frame is zero-sized or outside every display on every read, and never one a person can see. That is weaker evidence than Windows saying so, and is documented as such. It was not run against a real Mac recording. A ghost carries the program, class and title komorebi has for it, and the other windows of the same program that the recording saw (siblings), so that a rule for it can be narrow enough to leave them alone. overlaps() says whether it was there while a bug region was marked.