I have a base Window on the right side of my desktop (1). From there I click a button and need to adjust another window next to my base window.
It could happen that there is more than 1 Window (except the base window, see 1 & 2) is visible the same time (as usual for a desktop clone).
So I want to adjust the base window with that window, that is on top of the other windows. in this case it's window 2.
How can I recognize, this on is the window I want to adjust? it's not the one on top, that's the base window. What I need to have is some kind of stack, where I take the 2. element (the 2. Window) and adjust it...
I hope I could make it more clear with my picture.
imagine you have 3 cards. on on the right, and 2 on the left. you now want to know which of the 2 cards on the left is the one which is on top and which is in the back of the both cards.
you can't ask for something like isOnTop, because the right card is always on top....
Yes, i use the windowgroup, but how do I get the
second from the top. That's the question I can't find an answere for. Maybe because I worked the whole day for another problem and I can't see the solution even if it's simple... ;-)