uidriver/glfw: Bug fix: compile error on Linux

This commit is contained in:
Hajime Hoshi 2020-03-28 21:29:24 +09:00
parent 8cca713d74
commit 3e244d7a7c

View File

@ -34,7 +34,7 @@ func (u *UserInterface) adjustWindowPosition(x, y int) (int, int) {
func (u *UserInterface) currentMonitorFromPosition() *glfw.Monitor {
// TODO: Return more appropriate display.
if cm, ok := getCachedMonitor(u.window.GetPos()); ok {
if cm, ok := getCachedMonitor(u.window.GetMonitor()); ok {
return cm.m
}
return glfw.GetPrimaryMonitor()