Module: wine Branch: master Commit: 4bcf7cbbf010809cbdc7508e8e3d019588dfc0dc URL: http://source.winehq.org/git/wine.git/?a=commit;h=4bcf7cbbf010809cbdc7508e8e...
Author: Ken Thomases ken@codeweavers.com Date: Thu Jun 24 15:06:29 2010 -0500
winex11: Allow setting focus on active window, if no focus window.
---
dlls/winex11.drv/event.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-)
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 @@ 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);