IT lexicon › Infra & Ops › Save-under (X11)

Save-under (X11)

Infra & Ops På svenska → Updated: 2026-10-07

A window attribute asking the X server to keep the pixels beneath a short-lived window, so whatever was there can be restored without a redraw.

When a menu drops down over another application and then closes, the area underneath has to be repainted. Without help that means an Expose event to the application below — which may be busy — and a grey smear until it gets round to answering. With save_under set on the menu window, the server copies the pixels aside before mapping the menu and puts them back when it disappears.

It is the mirror image of backing store: that saves a window's own contents, this saves what the window hides. The attribute was typically set alongside override-redirect on menus and tooltips. Like backing store it was a polite request — the server could decline, and DoesSaveUnders() told you whether it intended to bother. Compositing servers made the question moot.

← Back to the lexicon