Browse Source

fix: explicitly focus window on win.show() (#18081)

trop[bot] 6 years ago
parent
commit
2ce22ba0e9
1 changed files with 3 additions and 0 deletions
  1. 3 0
      atom/browser/native_window_views.cc

+ 3 - 0
atom/browser/native_window_views.cc

@@ -380,6 +380,9 @@ void NativeWindowViews::Show() {
 
   widget()->native_widget_private()->Show(GetRestoredState(), gfx::Rect());
 
+  // explicitly focus the window
+  widget()->Activate();
+
   NotifyWindowShow();
 
 #if defined(USE_X11)