diff --git a/internal/ui/window_glfw.go b/internal/ui/window_glfw.go index dad7fc359..1fb6d0cdd 100644 --- a/internal/ui/window_glfw.go +++ b/internal/ui/window_glfw.go @@ -201,6 +201,7 @@ func (w *Window) Size() (int, int) { } ww, wh := 0, 0 w.ui.t.Call(func() { + // Unlike origWindowPos, windowWidth/HeightInDPI is always updated via the callback. ww = w.ui.windowWidthInDIP wh = w.ui.windowHeightInDIP }) @@ -215,6 +216,7 @@ func (w *Window) SetSize(width, height int) { w.ui.t.Call(func() { // When a window is a native fullscreen, forcing to resize the window might leave unexpected image lags. // Forbid this. + // TODO: Remove this condition (#1590). if w.ui.isNativeFullscreen() { return }