| Index: ui/views/widget/desktop_aura/x11_desktop_handler.cc
|
| diff --git a/ui/views/widget/desktop_aura/x11_desktop_handler.cc b/ui/views/widget/desktop_aura/x11_desktop_handler.cc
|
| index 3a14e04c076cebcbace6271db290e940ef144ef7..9e2c62962f731833e1f0a121993edee2ab50d9ae 100644
|
| --- a/ui/views/widget/desktop_aura/x11_desktop_handler.cc
|
| +++ b/ui/views/widget/desktop_aura/x11_desktop_handler.cc
|
| @@ -94,6 +94,12 @@ void X11DesktopHandler::ActivateWindow(::Window window) {
|
| &xclient);
|
| } else {
|
| XRaiseWindow(xdisplay_, window);
|
| +
|
| + // XRaiseWindow will not give input focus to the window. We now need to ask
|
| + // the X server to do that. Note that the call will raise an X error if the
|
| + // window is not mapped.
|
| + XSetInputFocus(xdisplay_, window, RevertToParent, CurrentTime);
|
| +
|
| OnActiveWindowChanged(window);
|
| }
|
| }
|
|
|