mirror of
git://source.winehq.org/git/wine.git
synced 2024-10-12 07:20:13 +00:00
winex11: Allow setting focus on active window, if no focus window.
This commit is contained in:
parent
0c50285e3e
commit
4bcf7cbbf0
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in a new issue