From 58f95dd1e05995c97ce31f88a4602b70f4b701b5 Mon Sep 17 00:00:00 2001 From: Hajime Hoshi Date: Sat, 5 Nov 2022 14:20:48 +0900 Subject: [PATCH] internal/ui: clean-up --- internal/ui/ui_glfw_darwin.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/ui/ui_glfw_darwin.go b/internal/ui/ui_glfw_darwin.go index 52c65f0b8..ab1c9c558 100644 --- a/internal/ui/ui_glfw_darwin.go +++ b/internal/ui/ui_glfw_darwin.go @@ -279,8 +279,8 @@ func (u *userInterfaceImpl) setNativeFullscreen(fullscreen bool) { } // Even though EbitengineWindowDelegate is used, this hack is still required. // toggleFullscreen doesn't work when the window is not resizable. - origFullScreen := window.Send(sel_collectionBehavior)&cocoa.NSWindowCollectionBehaviorFullScreenPrimary != 0 origCollectionBehavior := window.Send(sel_collectionBehavior) + origFullScreen := origCollectionBehavior&cocoa.NSWindowCollectionBehaviorFullScreenPrimary != 0 if !origFullScreen { collectionBehavior := origCollectionBehavior collectionBehavior |= cocoa.NSWindowCollectionBehaviorFullScreenPrimary