diff --git a/ui/allg5ui/renderer.go b/ui/allg5ui/renderer.go index fd4fcfc..d162987 100644 --- a/ui/allg5ui/renderer.go +++ b/ui/allg5ui/renderer.go @@ -54,7 +54,10 @@ func (r *Renderer) PushEvents(t ui.EventTarget, wait bool) { r.newCursor = ui.MouseCursorDefault var ev = eventWait(r.eq, wait) - for nil != ev { + if ev == nil { + return + } + for ev != nil { switch e := ev.(type) { case *allg5.DisplayCloseEvent: t.Handle(&ui.DisplayCloseEvent{EventBase: eventBase(e)})