mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-12-25 03:08:54 +01:00
internal/uidriver/glfw: Bug fix: Forbide Maximize/MinimizeWindow on the native fullscreen on macOS
Closes #1810
This commit is contained in:
parent
4509f2aee4
commit
39e7f71ccb
@ -1472,6 +1472,10 @@ func (u *UserInterface) Window() driver.Window {
|
||||
|
||||
// maximizeWindow must be called from the main thread.
|
||||
func (u *UserInterface) maximizeWindow() {
|
||||
if u.isNativeFullscreen() {
|
||||
return
|
||||
}
|
||||
|
||||
if u.setSizeCallbackEnabled {
|
||||
u.setSizeCallbackEnabled = false
|
||||
defer func() {
|
||||
@ -1497,6 +1501,10 @@ func (u *UserInterface) maximizeWindow() {
|
||||
|
||||
// iconifyWindow must be called from the main thread.
|
||||
func (u *UserInterface) iconifyWindow() {
|
||||
if u.isNativeFullscreen() {
|
||||
return
|
||||
}
|
||||
|
||||
if u.setSizeCallbackEnabled {
|
||||
u.setSizeCallbackEnabled = false
|
||||
defer func() {
|
||||
|
Loading…
Reference in New Issue
Block a user