From 6a24d6b2c61c221d8e695e08ca7002f70e4343a4 Mon Sep 17 00:00:00 2001 From: Hajime Hoshi Date: Tue, 27 Oct 2020 03:12:12 +0900 Subject: [PATCH] uidriver/glfw: Bug fix: Do not iconify the fullscreen window automatically Fixes #1405 --- internal/glfw/const.go | 1 + internal/uidriver/glfw/ui.go | 1 + 2 files changed, 2 insertions(+) diff --git a/internal/glfw/const.go b/internal/glfw/const.go index 54099915d..b4034acc5 100644 --- a/internal/glfw/const.go +++ b/internal/glfw/const.go @@ -75,6 +75,7 @@ const ( ) const ( + AutoIconify = Hint(0x00020006) ClientAPI = Hint(0x00022001) ContextVersionMajor = Hint(0x00022002) ContextVersionMinor = Hint(0x00022003) diff --git a/internal/uidriver/glfw/ui.go b/internal/uidriver/glfw/ui.go index 6a74f3681..1fdba05dc 100644 --- a/internal/uidriver/glfw/ui.go +++ b/internal/uidriver/glfw/ui.go @@ -672,6 +672,7 @@ func (u *UserInterface) run() error { } else { glfw.WindowHint(glfw.ClientAPI, glfw.NoAPI) } + glfw.WindowHint(glfw.AutoIconify, glfw.False) decorated := glfw.False if u.isInitWindowDecorated() {