| Index: ui/views/widget/native_widget_aura.cc
|
| diff --git a/ui/views/widget/native_widget_aura.cc b/ui/views/widget/native_widget_aura.cc
|
| index 85ab0aee9c0de3c74cd08d52dc8b9764d3a1a745..18d27912dd410d47a4aff26ba2c7098e14ff8fdd 100644
|
| --- a/ui/views/widget/native_widget_aura.cc
|
| +++ b/ui/views/widget/native_widget_aura.cc
|
| @@ -495,7 +495,8 @@ void NativeWidgetAura::ShowWithWindowState(ui::WindowShowState state) {
|
| // SetInitialFocus() should be always be called, even for
|
| // SHOW_STATE_INACTIVE. If the window has to stay inactive, the method will
|
| // do the right thing.
|
| - SetInitialFocus(state);
|
| + SetInitialFocus(wm::CanActivateWindow(window_) ? state
|
| + : ui::SHOW_STATE_INACTIVE);
|
| }
|
|
|
| // On desktop aura, a window is activated first even when it is shown as
|
|
|