Zorder of TopLevelWindows


Is there a way to find out if one TopLevelWindow is in front of the other?

Alternatively, is there a way to find out the area of a TopLevelComponent that is not covered by other TopLevelComponents, like Component::getVisibleArea()?


Yes, the Desktop class keeps a list of the desktop components, in the correct Z order.

Thank you

In OSX, I see that the Z order is the creation Z order, but when I’m changing the order, the order does not change.

Well, it’s supposed to be updated! Thanks - I’ll check that out…

My bad, it does change, but when I have a plug-in with a separate DocumentWindow it doesn’t show that the plug-in has just got on top of
the DocuementWindow.

I’m not sure if that’s a bug.
Anyway, Is there a way to know that?


Ah, all bets are off when it comes to plugins - we can’t detect when windows belonging to the host are moved around.