Commit 4bcf7cbb authored by Ken Thomases's avatar Ken Thomases Committed by Alexandre Julliard

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

parent 0c50285e
...@@ -483,6 +483,7 @@ static void set_focus( Display *display, HWND hwnd, Time time ) ...@@ -483,6 +483,7 @@ static void set_focus( Display *display, HWND hwnd, Time time )
GetGUIThreadInfo(0, &threadinfo); GetGUIThreadInfo(0, &threadinfo);
focus = threadinfo.hwndFocus; focus = threadinfo.hwndFocus;
if (!focus) focus = threadinfo.hwndActive;
if (focus) focus = GetAncestor( focus, GA_ROOT ); if (focus) focus = GetAncestor( focus, GA_ROOT );
win = X11DRV_get_whole_window(focus); win = X11DRV_get_whole_window(focus);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment