Skip to content

Commit

Permalink
Fix CenterOnScreen called from background
Browse files Browse the repository at this point in the history
Fixes #1539
  • Loading branch information
andydotxyz committed Nov 16, 2020
1 parent cc57489 commit 7b609b0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/driver/glfw/window.go
Expand Up @@ -126,7 +126,7 @@ func (w *window) CenterOnScreen() {
w.centered = true

if w.view() != nil {
w.doCenterOnScreen()
runOnMain(w.doCenterOnScreen)
}
}

Expand Down

0 comments on commit 7b609b0

Please sign in to comment.