http://bugs.winehq.org/show_bug.cgi?id=15069
--- Comment #32 from Vitaliy Margolen vitaliy@kievinfo.com 2009-08-06 00:40:55 --- I think these are two separate problems: 1. The Delphi apps minimize just fine. However on app restore WM restores the TApplication window, after app itself "hide" it. This window has 0x0 size but has WS_VISABLE style. So it should not be managed. Or even mapped I think.
2. FireFox minimization actually does work, if it has focus. But fails when it's not focused. I'm guessing it refocuses itself at the wrong time.
So the only "common" part that I see is the fact that some events do happen at the wrong time. Not really sure how to fix it. 1) could be fixed by not unmapping window that is 0 size, even if X/WM wants to map it. 2) probably needs a SetFocus "filter" of sorts when app is minimizing. Needs more testing.