From 241ccc307f2cbefb2ab65146afd0b315bf5e7276 Mon Sep 17 00:00:00 2001 From: Hajime Hoshi Date: Tue, 18 Dec 2018 03:34:36 +0900 Subject: [PATCH] ui: Add comments about #753 --- internal/ui/ui_glfw.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/internal/ui/ui_glfw.go b/internal/ui/ui_glfw.go index e45f3de67..bbf4591f4 100644 --- a/internal/ui/ui_glfw.go +++ b/internal/ui/ui_glfw.go @@ -508,6 +508,7 @@ func SetWindowDecorated(decorated bool) { // if decorated { // v = glfw.True // } + // }) // currentUI.window.SetAttrib(glfw.Decorated, v) // return nil } @@ -516,6 +517,9 @@ func DeviceScaleFactor() float64 { f := 0.0 u := currentUI if !u.isRunning() { + // TODO: Unfortunately, this assumes that a window already exists. + // Can we fix this not depending on the window? + // This is related to SetWindowDecorated bug (#753). return devicescale.GetAt(u.currentMonitor().GetPos()) }