package oxbow

  1. Overview
  2. Docs
Legend:
Page
Library
Module
Module type
Parameter
Class
Class type
Source

Module Oxbow_ops.SwallowSource

Sourceval parent_pid : (int -> int option) ref

parent_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.

Sourceval try_swallow : Oxbow_state.Wm.t -> Oxbow_state.Window.t -> unit

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

Sourceval unswallow : Oxbow_state.Window.t -> unit

unswallow window restores the host hidden by window. No-op when window swallows nothing.

Effects: mutates WM state

Sourceval on_close : Oxbow_state.Window.t -> unit

on_close window clears the swallow relation of a closing window. A closing child restores its host first.

Effects: mutates WM state

toggle wm seat target swallows under, or restores from, the target windows. Is Error msg when target has no match.

Effects: mutates WM state