internal/uidriver/glfw: Bug fix: Crashed a transparent button with the green button

Updates #1822
Closes #1857
This commit is contained in:
Hajime Hoshi 2021-10-31 18:21:00 +09:00
parent afded3c711
commit 97af84c32a

View File

@ -181,7 +181,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) {