Gravity (X11)
X11's rules for what stays where when a window changes size.
Every X window has two gravities. Bit gravity tells the server which part of the existing contents to keep on resize — with NorthWestGravity the pixels stay anchored top-left and only the newly exposed area needs redrawing. The default, ForgetGravity, throws everything away and sends an Expose event. Win gravity instead governs how child windows move when their parent grows, and with UnmapGravity can make them disappear altogether.
Window managers reuse the concept in WM_NORMAL_HINTS: a program that places itself in the bottom-right corner asks for SouthEastGravity so the frame grows in the right direction. Getting it right is notoriously fiddly, and windows that creep a few pixels every time the window manager restarts can almost always be blamed on gravity.