Skip to content

Commit

Permalink
fix: explicitly focus window on win.show() (#18080)
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 5693b7f commit 232d9fe
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions atom/browser/native_window_views.cc
Expand Up @@ -358,6 +358,9 @@ void NativeWindowViews::Show() {

widget()->native_widget_private()->Show(GetRestoredState(), gfx::Rect());

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

NotifyWindowShow();

#if defined(USE_X11)
Expand Down

0 comments on commit 232d9fe

Please sign in to comment.