Sloth wrote:Yes, setting the clip was not needed. I commented it out. Please report if there are side effects.
Thanks Sloth - but unfortunately, the rounded rectangle clip
is needed to support textures and images in rounded corner panels - this is the whole struggle

A solid background color can be drawn directly as a RoundRect, which one sees in the solid-colored panels. But to round the corners of an image, they'll need to be masked somehow - either clipped or composited.
This rounded corner, image supporting panel has a lot of applications, when/if it is done. (It's not being used yet, so one can't see any "side effects" now.)
Anyway, that's the goal. Maybe the best thing to do for now is abandon this functionality, use the square corner version, and once I get a chance to develop on a different OS I can revisit this.