mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-12-26 03:38:55 +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.
|
// maximizeWindow must be called from the main thread.
|
||||||
func (u *UserInterface) maximizeWindow() {
|
func (u *UserInterface) maximizeWindow() {
|
||||||
|
if u.isNativeFullscreen() {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
if u.setSizeCallbackEnabled {
|
if u.setSizeCallbackEnabled {
|
||||||
u.setSizeCallbackEnabled = false
|
u.setSizeCallbackEnabled = false
|
||||||
defer func() {
|
defer func() {
|
||||||
@ -1497,6 +1501,10 @@ func (u *UserInterface) maximizeWindow() {
|
|||||||
|
|
||||||
// iconifyWindow must be called from the main thread.
|
// iconifyWindow must be called from the main thread.
|
||||||
func (u *UserInterface) iconifyWindow() {
|
func (u *UserInterface) iconifyWindow() {
|
||||||
|
if u.isNativeFullscreen() {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
if u.setSizeCallbackEnabled {
|
if u.setSizeCallbackEnabled {
|
||||||
u.setSizeCallbackEnabled = false
|
u.setSizeCallbackEnabled = false
|
||||||
defer func() {
|
defer func() {
|
||||||
|
Loading…
Reference in New Issue
Block a user