I’d like to make some desktop windows behave like childs of another desktop window and can’t seem to find a solution.
i have 3 windows on the desktop
main, child1, child2
what i would like to achive is that if i click on the ‘main’ window, it will also bring ‘child1+2’ to the front of all other windows on the desktop and always keep ‘child1+2’ in front of the main window.
when i minimize the ‘main’ window, ‘child1+2’ should also be minimized.
The z-order of the ‘child’ windows should stay the same unless i click on a ‘child’ directly.
so in the end i need the same behaviour as if i would add the 2 childs to the main window component, but keep them as windows on the desktop.
is this possible?
so far i could only find the alwaysOnTop() function, which is not what i need.
using toFront() and toBack() would involve a lot of gain/lostFocus() checking and seems a bit complicated.
any help welcome!