I'm trying to minimize to the task bar, not the tray. This is a window generated by running the Thrustmaster control software, TargetGUI, and passing it the argument of a script file I wrote. This is not a file created by the GUI interface but by using the TM script editor. The window has no border and only one button for minimize and it seems to not want to minimize unless I do it by hand. I suspect TM did something wacky with their window as they aren't the greatest for software.