Type Definition gabelstaplerwm::wm::window_system::Matching [] [src]

type Matching = Box<Fn(&ClientProps, &ScreenSet) -> Option<(BTreeSet<Tag>, bool)>>;

Closure type of a callback function determining client placement on creation.

Used to implement default tagsets for specific clients, as well as to decide whether they appear as master windows or as slaves. A value of true returned by the function as the second element of the tuple signifies an insertion as a slave window, a value of false indicates the window being inserted as a master window.