uidriver/glfw: Update comments

This commit is contained in:
Hajime Hoshi 2020-03-29 01:33:23 +09:00
parent e3def4ae50
commit b09fe7157b

View File

@ -691,8 +691,9 @@ func (u *UserInterface) run(context driver.UIContext) error {
u.setWindowSize(ww, wh, u.isFullscreen(), u.vsync) u.setWindowSize(ww, wh, u.isFullscreen(), u.vsync)
} }
// Set the window size and the window position in this order on Linux (X) (#1118), // Set the window size and the window position in this order on Linux or other UNIX using X (#1118),
// but this is inverted on Windows. This is very tricky, but there is no obvious way to solve this. // but this should be inverted on Windows. This is very tricky, but there is no obvious way to solve this.
// This doesn't matter on macOS.
if runtime.GOOS == "windows" { if runtime.GOOS == "windows" {
setPosition() setPosition()
setSize() setSize()