http://bugs.winehq.org/show_bug.cgi?id=23745
--- Comment #23 from Roman m01brv@mail.ru 2011-01-26 03:58:52 CST --- Given the results from the above post, I found an easy workaround for this bug, which works for me pretty well. It is possible (in KDE at least) to set some specific window behaviour for a given application. I set for war3.exe the properties "maximized horizontally" and "maximized vertically" to be forced off, and the "fullscreen" property to be forced on. After that, KWin is always forced to treat this window as non-maximized one, and the execution in the above piece of code goes to the "else if" branch with the message "restoring win ...". In practice, the game window just becomes restorable as it normally should be. The forced fullscreen was necessary because otherwise my desktop panels overlapped the window.