I thought that with that all the transient windows would be in the middle of the screen and get the focus automatically but this isn’t the case, transient windows of nautilus do not get the focus and the research window in synaptics in not in the middle of the screen.
The stacking order of transient windows is relative to the parent window – and it depends entirely on where it is placed when the transient window get mapped. It’s going to be hit and miss, I’m afraid.
There’s a line in your config (above) which is inaccurate:
but your trick doesn’t seem to work out!
Anyway I think this is more due to some bad behaving application, i.e. synaptic (the first find window started isn’t centered, the next ones are). Gvim for example does not misbehave.
That’s not so important!
BTW thanks for your remarks concerning the focus policy!
If you call PlaceAgain after changing the WindowStyle, it works correctly
although there is a flicker as the transient window is drawn and then
redrawn in the new location. I can’t figure out how to prevent the initial
drawing of the transient.
Actually, I can think of one way to fix this, but it seems overkill: Create a default
style for all windows that starts them iconified with no icon (effectively
making them invisible). Then use WindowStyle to apply the style you
want and then de-iconify them and place them where you want.
Which would be even more unsightly, due to the fact that you’ve then got potentially three different things happening that you didn’t have before. No, WindowStyle is about the best thing, until something like a ‘TransientStyle’ comamnd is introduced, although to be quite honest, it’s a stupid idea. Transient windows are called transient for a reason – they’re never on the screen long enough.