internal/ui: bug fix: needed to focus the window at launch

Updates #2725
Closes #2924
This commit is contained in:
Hajime Hoshi 2024-03-10 12:44:26 +09:00
parent 9a7dcb1077
commit c9a973c6c1

View File

@ -1321,6 +1321,9 @@ func (u *UserInterface) update() (float64, float64, error) {
if err = u.window.Show(); err != nil {
return
}
if err = u.window.Focus(); err != nil {
return
}
})
if err != nil {
return 0, 0, err