DecorWindow::glDraw checks if we are drawing a desktop window and forcibly draws dock window shadows on top of the desktop window. If the dock window is in the paint list, but is never actually painted, it is possible for the dock window shadow to be painted anyways.
Another "bug" here is that dock window shadows will get painted with the desktop window's matrix and paint attributes, which could be different and the shadow would become detached.
DecorWindow::glDraw checks if we are drawing a desktop window and forcibly draws dock window shadows on top of the desktop window. If the dock window is in the paint list, but is never actually painted, it is possible for the dock window shadow to be painted anyways.
Another "bug" here is that dock window shadows will get painted with the desktop window's matrix and paint attributes, which could be different and the shadow would become detached.