Skip to content

Commit

Permalink
internal/uidriver/glfw: Bug fix: Crashed a transparent button with th…
Browse files Browse the repository at this point in the history
…e green button

Updates hajimehoshi#1822
Closes hajimehoshi#1857
  • Loading branch information
hajimehoshi committed Oct 31, 2021
1 parent afded3c commit 97af84c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion internal/uidriver/glfw/ui_darwin.go
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 97af84c

Please sign in to comment.