http://bugs.winehq.org/show_bug.cgi?id=9320
--- Comment #19 from Vitaliy Margolen vitaliy@kievinfo.com 2009-11-11 23:48:54 --- (In reply to comment #17)
But which hwnd should be focused? Is it GetForegroundWindow() ? Is that the same as the window that gets keyboard input?
Theoretically that should be the window that had focus before VD lost it's X-focus. In practice - focus inside VD shouldn't change since the foreground window shouldn't change either. At least if it just regained focus without a pointer click somewhere inside. In that case whatever window was clicked should get focus.
(In reply to comment #18) These patches do make things better. Except active window inside VD being deactivated and loosing focus when VD looses X-focus.