Bogdan Valentin Neacsa wrote:
> Sadly this is not a start from scratch but rather a small bug in an
> already existing bigger solution so changing the entire design would
> be hard to do. Is there no way to make the actual design work ?
Probably, but it's just going to take some experimentation. When you
display a dialog modally, it starts its own message loop that sucks up
messages for the dialog. When you close the dialog, there's an awkward
race condition where it tries to bring back the window that was frozen.
If messages get lost or out of order, you get strange shuffling.
You're going to have to experiment with delays (and maybe CallAfter) to
see if you can get the windows raised in the right order.