Skip to main content

group_windows

Function group_windows 

Source
pub fn group_windows(
    displays: &[DisplayInfo],
    windows: &[WindowInfo],
) -> Vec<SpaceScreen>
Expand description

Group windows by which screen in displays contains each window’s center. Windows whose center is outside every screen fall into a synthetic group attached to the first screen; this is rare (a multi-screen arrangement where a window is mid-drag) but the algorithm must not lose the window.