| commit | 4bcf7cbbf010809cbdc7508e8e3d019588dfc0dc | [log] [tgz] |
|---|---|---|
| author | Ken Thomases <ken@codeweavers.com> | Thu Jun 24 15:06:29 2010 -0500 |
| committer | Alexandre Julliard <julliard@winehq.org> | Fri Jun 25 10:25:41 2010 +0200 |
| tree | 85b3ab7b19dacb6bb80c8918d7808efff423217d | |
| parent | 0c50285e3e49151bb13422e6c80574c53dfaaa69 [diff] |
winex11: Allow setting focus on active window, if no focus window.
diff --git a/dlls/winex11.drv/event.c b/dlls/winex11.drv/event.c index 64d1992..0e8d60c 100644 --- a/dlls/winex11.drv/event.c +++ b/dlls/winex11.drv/event.c
@@ -483,6 +483,7 @@ GetGUIThreadInfo(0, &threadinfo); focus = threadinfo.hwndFocus; + if (!focus) focus = threadinfo.hwndActive; if (focus) focus = GetAncestor( focus, GA_ROOT ); win = X11DRV_get_whole_window(focus);