http://bugs.winehq.org/show_bug.cgi?id=16136
--- Comment #1 from Eric Sandall sandalle@sourcemage.org 2008-11-22 16:58:02 --- Created an attachment (id=17410) --> (http://bugs.winehq.org/attachment.cgi?id=17410) Fixes focus crashing LoTRO MoM on some machines
This happens with wine 1.1.9 as well. The issue started after the Mines of Moria (Volume II - Book I - Mines of Moria) patch was applied. Before that patch, losing focus worked fine.
I tried the patch at http://appdb.winehq.org/commentview.php?iAppId=4891&iVersionId=14566&...: --- event.c~ 2008-11-07 11:09:33.000000000 -0500 +++ event.c 2008-11-20 13:10:15.000000000 -0500 @@ -685,7 +685,7 @@ if (hwnd == GetForegroundWindow()) { TRACE( "lost focus, setting fg to desktop\n" ); - SetForegroundWindow( GetDesktopWindow() ); + //SetForegroundWindow( GetDesktopWindow() ); } } }
As mentioned by the Requestor of this bug, and that patch fixes this issue.
I have attached a patch which removes the entire focus check, however I would like to point out this bug is not happening on every box. I will do more testing to try and find the culprit, but this is happening with the WM set to Enlightenment DR 17 20081121 on one box, but not KDE 3.5.10 on a different box. I do not believe this is the proper fix, but it does fix the issue for some.