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

This commit is contained in:
Shelley Vohr 2019-04-30 16:43:45 -07:00 committed by GitHub
parent 67b3fbca89
commit 00358545a9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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