From 61bf10e73e6605d9500ee8ade092ca1af72bfb51 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 f933f944b..4ca6b0de0 100644 --- a/internal/uidriver/glfw/ui.go +++ b/internal/uidriver/glfw/ui.go @@ -643,6 +643,7 @@ func (u *UserInterface) init() error { } else { glfw.WindowHint(glfw.ClientAPI, glfw.NoAPI) } + glfw.WindowHint(glfw.AutoIconify, glfw.False) decorated := glfw.False if u.isInitWindowDecorated() {