diff --git a/internal/uidriver/glfw/ui.go b/internal/uidriver/glfw/ui.go index fc8b2c84b..1f96e69fb 100644 --- a/internal/uidriver/glfw/ui.go +++ b/internal/uidriver/glfw/ui.go @@ -117,6 +117,11 @@ func initialize() error { if err != nil { return err } + if w == nil { + // This can happen on Windows Remote Desktop (#903). + panic("ui: glfw.CreateWindow must not return nil") + } + // TODO: Fix this hack. currentMonitorImpl now requires u.window on POSIX. theUI.window = w theUI.initMonitor = theUI.currentMonitorFromPosition()