fix: explicitly focus window on win.show() (#18046)
This commit is contained in:
parent
67b3fbca89
commit
00358545a9
1 changed files with 3 additions and 0 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue