Index: ui/views/widget/desktop_aura/desktop_window_tree_host_win.cc |
diff --git a/ui/views/widget/desktop_aura/desktop_window_tree_host_win.cc b/ui/views/widget/desktop_aura/desktop_window_tree_host_win.cc |
index 6e71f05a8b00c5c10494665af35a63ad965c3f7d..9f453e52a546ff403c839a1cc10369853aeb2ba0 100644 |
--- a/ui/views/widget/desktop_aura/desktop_window_tree_host_win.cc |
+++ b/ui/views/widget/desktop_aura/desktop_window_tree_host_win.cc |
@@ -611,7 +611,7 @@ bool DesktopWindowTreeHostWin::IsModal() const { |
} |
int DesktopWindowTreeHostWin::GetInitialShowState() const { |
- return SW_SHOWNORMAL; |
+ return CanActivate() ? SW_SHOWNORMAL : SW_SHOWNOACTIVATE; |
} |
bool DesktopWindowTreeHostWin::WillProcessWorkAreaChange() const { |