Ken Thomases : winex11: Allow setting focus on active window, if no focus window.
Alexandre Julliard
julliard at winehq.org
Fri Jun 25 09:40:53 CDT 2010
Module: wine
Branch: master
Commit: 4bcf7cbbf010809cbdc7508e8e3d019588dfc0dc
URL: http://source.winehq.org/git/wine.git/?a=commit;h=4bcf7cbbf010809cbdc7508e8e3d019588dfc0dc
Author: Ken Thomases <ken at 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);
More information about the wine-cvs
mailing list