Commit 12d1ff8e authored by Alexandre Julliard's avatar Alexandre Julliard

winex11: Add handling of take focus event on the desktop window.

parent f08747cb
......@@ -566,6 +566,14 @@ static void handle_wm_protocols( HWND hwnd, XClientMessageEvent *event )
return;
}
}
else if (hwnd == GetDesktopWindow())
{
hwnd = GetForegroundWindow();
if (!hwnd) hwnd = last_focus;
if (!hwnd) hwnd = GetDesktopWindow();
set_focus( event->display, hwnd, event_time );
return;
}
/* try to find some other window to give the focus to */
hwnd = GetFocus();
if (hwnd) hwnd = GetAncestor( hwnd, GA_ROOT );
......
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