diff --git a/internal/ui/ui_glfw.go b/internal/ui/ui_glfw.go index edb41f961..f66d55075 100644 --- a/internal/ui/ui_glfw.go +++ b/internal/ui/ui_glfw.go @@ -1347,6 +1347,7 @@ func (u *userInterfaceImpl) setWindowSizeInDIPImpl(width, height int, fullscreen u.swapBuffers() } + // TODO: origWindowPos should always return invalidPos, then this logic should not be needed. if x, y := u.origWindowPos(); x != invalidPos && y != invalidPos { u.window.SetPos(x, y) // Dirty hack for macOS (#703). Rendering doesn't work correctly with one SetPos, but diff --git a/internal/ui/ui_glfw_darwin.go b/internal/ui/ui_glfw_darwin.go index 23101f4ba..b7f7b4448 100644 --- a/internal/ui/ui_glfw_darwin.go +++ b/internal/ui/ui_glfw_darwin.go @@ -103,10 +103,6 @@ package ui // - (void)windowDidExitFullScreen:(NSNotification *)notification { // NSWindow* window = (NSWindow*)[notification object]; // [self popResizableState:window]; -// CGRect frame; -// frame.origin = self->_origPos; -// frame.size = self->_origSize; -// [window setFrame:frame display:YES]; // } // // @end