Cocoa Rounded-windows with canvases in corners

It seems that any window in cocoa that has a canvas painting all of the way to a corner will draw the full rectangular canvas and not mask it to the rounded corner look. Activating the window will cause it to be drawn rounded, and any refresh to the canvas will draw it again rectangularly.

Is there a way to use canvases to do custom drawing near the corners that will not cause them to switch between rounded/not-rounded?

I can’t reproduce this. What does your paint code look like and how is it triggered when it paints outside the rounded frame?