mirror of
https://github.com/brl/mutter.git
synced 2025-01-27 11:59:12 +00:00
6de3413921
If the rectangle is allocate a size smaller than the border, drawing the border will end up with negative coordinates, and will mess up the whole thing. Since rectangles don't have a minimum preferred size, we cannot rely on the allocation being big enough to contain the border and the background color. If the rectangle is smaller than the border width value, we just paint the border color as well.