This fixes a problem when the window title bar is dithered down to the 16- or 256-color palette. See also commit 0705f30.
0705f30