Skip to main content

migrate_legacy_minimize

Function migrate_legacy_minimize 

Source
pub fn migrate_legacy_minimize(root: &mut LayoutNode) -> usize
Expand description

Migrate the pre-display-mode minimize fields to the minimized flag. This is the only place it happens: srv runs it on every tree it loads at bootstrap (heal_loaded_layout) and before every intent, so the window is never given a tree that carries them. Returns how many fields it migrated (0 for a current tree).