Zorder of TopLevelWindows


#1

Hi

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()?

Thanks.


#2

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


#3

Thank you


#4

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.


#5

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


#6

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?

Thanks


#7

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