diff --git a/examples/events/events.go b/examples/events/events.go index 1a2b2b4..f2befd1 100644 --- a/examples/events/events.go +++ b/examples/events/events.go @@ -20,7 +20,9 @@ func (e *ev) ActiveWindow(w event.ActiveWindow) { } func main() { - c := event.MustEventClient() + c := event.MustClient() + defer c.Close() + event.Subscribe( c, &ev{}, event.EventWorkspace,