DocumentWindow BorderSize

I’m trying to get rid of the border around my documentWindow, no matter what I try there seems to be a thin line around. I’ve already tried overriding drawResizableWindowBorder in my lookandfeel, as follows.

void drawResizableWindowBorder (Graphics& g, int w, int h, const BorderSize& border, ResizableWindow& window) { //Don't do anything here }

but doesn’t help. Also tried adding BorderSize(0) to my documentWindow, still the thin line :shock: , Any ideas?

Is this on a Mac? Because OSX actually draws a thin grey outline around all windows, and as far as I can tell there’s no way to remove it…