I have been working on a very small gui implementation, and for the life of me cannot come up with a way to do something(in theory seems very straightforward).
If 2 frames with an x, y, width, and height, are overlapping, how can you set the top-most window to "active" or "selected?" Everything I start to come up with becomes incredibly verbose for something that will be called every frame update, so I'm hoping someone out there might have a better idea(that works of course

Any help would be appreciated