If another application make a minimize for another application there can be a problem i think. (If TripleX has done it in this way.)

I think it is a better way to send a message to the applicaton for minimize so that it knows it.