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.