Skip to content

Commit

Permalink
Don't hide fullscreen windows when losing focus
Browse files Browse the repository at this point in the history
Also tidy up bool usage.
Fixes #2448
  • Loading branch information
andydotxyz committed Sep 8, 2021
1 parent 0b7a39f commit c5be0aa
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions internal/driver/glfw/window.go
Expand Up @@ -1389,18 +1389,19 @@ func (w *window) create() {
runOnMain(func() {
if !isWayland {
// make the window hidden, we will set it up and then show it later
glfw.WindowHint(glfw.Visible, 0)
glfw.WindowHint(glfw.Visible, glfw.False)
}
if w.decorate {
glfw.WindowHint(glfw.Decorated, 1)
glfw.WindowHint(glfw.Decorated, glfw.True)
} else {
glfw.WindowHint(glfw.Decorated, 0)
glfw.WindowHint(glfw.Decorated, glfw.False)
}
if w.fixedSize {
glfw.WindowHint(glfw.Resizable, 0)
glfw.WindowHint(glfw.Resizable, glfw.False)
} else {
glfw.WindowHint(glfw.Resizable, 1)
glfw.WindowHint(glfw.Resizable, glfw.True)
}
glfw.WindowHint(glfw.AutoIconify, glfw.False)
initWindowHints()

pixWidth, pixHeight := w.screenSize(w.canvas.size)
Expand Down

0 comments on commit c5be0aa

Please sign in to comment.