winex11: Allow setting focus on active window, if no focus window.

This commit is contained in:
Ken Thomases 2010-06-24 15:06:29 -05:00 committed by Alexandre Julliard
parent 0c50285e3e
commit 4bcf7cbbf0

View file

@ -483,6 +483,7 @@ static void set_focus( Display *display, HWND hwnd, Time time )
GetGUIThreadInfo(0, &threadinfo);
focus = threadinfo.hwndFocus;
if (!focus) focus = threadinfo.hwndActive;
if (focus) focus = GetAncestor( focus, GA_ROOT );
win = X11DRV_get_whole_window(focus);