Window border (X11)
The frame the X server can draw around every window by itself, outside the window's area — a feature of the 1980s protocol that nearly every modern program sets to zero pixels.
Every X window has a border width, set at XCreateWindow and changeable through ConfigureWindow, and a border filled with a colour or a pixmap. The border sits outside the window's width and height, and the window's position refers to the border's top-left corner — a detail responsible for countless off-by-one-or-two-pixel bugs. No redraw is needed; the server paints it unaided.
Early window managers such as twm used it as a cheap frame and changed its colour on focus. Reparenting managers draw their own frames instead and set the client's border to zero, saving the original value and restoring it if they exit. ICCCM gives the window manager the right to change the border width, so a program cannot count on keeping the border it asked for.