From 113796efaed7ff2a79c26bacbcb65930d32bbfc0 Mon Sep 17 00:00:00 2001 From: Hajime Hoshi Date: Sun, 31 Oct 2021 18:21:00 +0900 Subject: [PATCH] internal/uidriver/glfw: Bug fix: Crashed a transparent button with the green button Updates #1822 Closes #1857 --- internal/uidriver/glfw/ui_darwin.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/internal/uidriver/glfw/ui_darwin.go b/internal/uidriver/glfw/ui_darwin.go index 39290419c..e8829580d 100644 --- a/internal/uidriver/glfw/ui_darwin.go +++ b/internal/uidriver/glfw/ui_darwin.go @@ -175,7 +175,9 @@ func (u *UserInterface) setNativeCursor(shape driver.CursorShape) { } func (u *UserInterface) isNativeFullscreenAvailable() bool { - return u.window.GetAttrib(glfw.TransparentFramebuffer) != glfw.True + // TODO: If the window is transparent, we should use GLFW's windowed fullscreen (#1822, #1857). + // However, if the user clicks the green button, should this window be in native fullscreen mode? + return true } func (u *UserInterface) setNativeFullscreen(fullscreen bool) {