Skip to content

Commit

Permalink
fix: explicitly focus window on win.show() (#18079)
Browse files Browse the repository at this point in the history
  • Loading branch information
trop[bot] authored and codebytere committed May 1, 2019
1 parent 2f67cd5 commit d1f5d20
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions atom/browser/native_window_views.cc
Expand Up @@ -349,6 +349,9 @@ void NativeWindowViews::Show() {

widget()->native_widget_private()->ShowWithWindowState(GetRestoredState());

// explicitly focus the window
widget()->Activate();

NotifyWindowShow();

#if defined(USE_X11)
Expand Down

0 comments on commit d1f5d20

Please sign in to comment.