Skip to content

Commit

Permalink
Fix fullscreen of not-yet-visible window
Browse files Browse the repository at this point in the history
Fixes #2446
  • Loading branch information
andydotxyz committed Sep 8, 2021
1 parent 0487ac6 commit 0b7a39f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/driver/glfw/window.go
Expand Up @@ -273,7 +273,7 @@ func (w *window) SetMainMenu(menu *fyne.MainMenu) {
}

func (w *window) fitContent() {
if w.canvas.Content() == nil || w.fullScreen {
if w.canvas.Content() == nil || (w.fullScreen && w.visible) {
return
}

Expand Down

0 comments on commit 0b7a39f

Please sign in to comment.