Skip to main content

attach

Function attach 

pub fn attach(moving: Placement, others: &[Placement]) -> Placement
Expand description

If moving touches none of others, slide it to the nearest one until their edges meet: a display floating apart would leave a stretch of desktop the pointer cannot reach.