IT lexicon › Infra & Ops › MapRequest

MapRequest

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

The X11 event a window manager receives instead of a program actually showing its window — the first question asked in every window's life on the desktop.

A program calling XMapWindow on a top-level window believes it is putting the window on screen. If a window manager has selected SubstructureRedirect on the root, nothing appears; the server sends a MapRequest with the window's id to the manager and lets it decide. Nearly all the real work of a traditional window manager starts here: read WM_HINTS and WM_NORMAL_HINTS, pick a position, build a frame and reparent the client into it, set WM_STATE, and finally map both frame and window.

If WM_HINTS says the window wants to start iconified, the correct answer is not to map it at all and show an icon instead. Override-redirect windows such as menus never generate a MapRequest; they map straight away and the window manager only hears about it afterwards through MapNotify.

← Back to the lexicon