Oxbow_ops.SwallowSourceparent_pid maps a PID to its parent PID. The default reads /proc/<pid>/stat. Tests replace it. Is None when the PID has no parent or the read fails.
try_swallow wm window finds an eligible terminal ancestor of window and swallows it. No-op when window or every candidate fails an eligibility test.
Effects: mutates WM state
unswallow window restores the host hidden by window. No-op when window swallows nothing.
Effects: mutates WM state
on_close window clears the swallow relation of a closing window. A closing child restores its host first.
Effects: mutates WM state
val toggle :
Oxbow_state.Wm.t ->
Oxbow_state.Seat.t ->
Oxbow_core.Target.Window.Any.t ->
(Yojson.Safe.t option, string) resulttoggle wm seat target swallows under, or restores from, the target windows. Is Error msg when target has no match.
Effects: mutates WM state