IT lexicon › Programming › Atom (X11)

Atom (X11)

Programming På svenska → Updated: 2026-10-07

A 32-bit number the X server hands out in place of a string, so names don't have to cross the network again and again.

X11 needs names for a lot of things: window properties, data types, selections, message types. Sending WM_NAME or _NET_WM_STATE_FULLSCREEN as text on every request would have been wasteful on eighties networks. Instead the client asks the server once with XInternAtom and gets back an integer that is valid for every client on that server. About sixty atoms, such as PRIMARY and STRING, are predefined by the protocol.

The catch is that the server never forgets. An atom lives until the server restarts, so a program that interns unique names in a loop leaks memory in the server rather than in itself. ICCCM and EWMH are, to a large extent, long lists of which atom names mean what.

← Back to the lexicon