Skip to main content

FULLSCREEN_TOLERANCE_PX

Constant FULLSCREEN_TOLERANCE_PX 

Source
const FULLSCREEN_TOLERANCE_PX: i32 = 2;
Expand description

Pixel tolerance when comparing window bounds to monitor bounds. Native fullscreen on macOS/Windows is exact, but X11 reparenting window managers (i3, openbox) sometimes leave a 1–2px border. Keep this small — a 5px tolerance would catch maximised-but-not-fullscreen windows on some setups.