uidriver/glfw: Bug fix: Do not iconify the fullscreen window automatically

Fixes #1405
This commit is contained in:
Hajime Hoshi 2020-10-27 03:12:12 +09:00
parent 4c7eaeaf02
commit 6a24d6b2c6
2 changed files with 2 additions and 0 deletions

View File

@ -75,6 +75,7 @@ const (
) )
const ( const (
AutoIconify = Hint(0x00020006)
ClientAPI = Hint(0x00022001) ClientAPI = Hint(0x00022001)
ContextVersionMajor = Hint(0x00022002) ContextVersionMajor = Hint(0x00022002)
ContextVersionMinor = Hint(0x00022003) ContextVersionMinor = Hint(0x00022003)

View File

@ -672,6 +672,7 @@ func (u *UserInterface) run() error {
} else { } else {
glfw.WindowHint(glfw.ClientAPI, glfw.NoAPI) glfw.WindowHint(glfw.ClientAPI, glfw.NoAPI)
} }
glfw.WindowHint(glfw.AutoIconify, glfw.False)
decorated := glfw.False decorated := glfw.False
if u.isInitWindowDecorated() { if u.isInitWindowDecorated() {