diff --git a/internal/ui/ui_glfw.go b/internal/ui/ui_glfw.go index b71d66b43..2ab5dcdb1 100644 --- a/internal/ui/ui_glfw.go +++ b/internal/ui/ui_glfw.go @@ -742,6 +742,12 @@ func (u *userInterface) forceSetScreenSize(width, height int, scale float64, ful x := u.origPosX y := u.origPosY u.window.SetPos(x, y) + // Dirty hack for macOS (#703). Rendering doesn't work correctly with one SetPos, but work + // with two or more SetPos. + if runtime.GOOS == "darwin" { + u.window.SetPos(x+1, y) + u.window.SetPos(x, y) + } u.origPosX = -1 u.origPosY = -1 }