Originally Posted By: /window
-D -- allows a window to be toggled between mdi and desktop
-o -- if opened on desktop, place ontop

When creating a custom /window, I usually always use the -D switch to enable the option of desktop placement toggling. I also tend to default its setting to always-on-top in case I choose to move it to the desktop. However, even as an MDI window, the -o switch attempts to bring the window to the foreground as if the -a (activate) switch were used. This is true even if the -n (minimize) switch is used as well.

Solution: Don't activate the window when -o is used. Only set its on-top style when converted into a desktop window, but not as an MDI window.


Well. At least I won lunch.
Good philosophy, see good in bad, I like!