SubstructureRedirect
The X11 event mask that turns an ordinary client into a window manager: the server stops carrying out other programs' window requests and hands them to that client instead.
The 1987 X protocol refused to decide where windows go, but left a hook. Whichever client selects SubstructureRedirectMask on a window, in practice the root window, has every attempt by other clients to map, move, resize or restack its children redirected to it as MapRequest, ConfigureRequest and CirculateRequest events. Nothing happens on screen until the window manager carries out the request itself, altered or not, or ignores it. That is where all the power lives: wrapping the window in a frame (reparenting), forcing it onto the desktop or refusing to let it outgrow the screen are just different answers to the same event.
The server allows exactly one client per window. A second window manager that tries to select the mask gets BadAccess, which is where the message "another window manager is already running" comes from. SubstructureNotifyMask is the passive sibling that merely reports what happened. Override-redirect windows such as menus and tooltips bypass the whole mechanism. Wayland has no equivalent because the compositor is the server, which is why a window manager is no longer something you swap out.