From 5d66ea8a99a1638b4210b2d2be9ccc644691eb44 Mon Sep 17 00:00:00 2001 From: "Devin J. Pohly" Date: Thu, 23 Jul 2020 18:14:33 -0400 Subject: don't double-add new monitor to mons this was a copy/paste error --- dwl.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/dwl.c b/dwl.c index 41beaf1..3609a38 100644 --- a/dwl.c +++ b/dwl.c @@ -484,10 +484,9 @@ createmon(struct wl_listener *listener, void *data) /* Set up event listeners */ m->frame.notify = rendermon; wl_signal_add(&wlr_output->events.frame, &m->frame); - wl_list_insert(&mons, &m->link); - m->destroy.notify = cleanupmon; wl_signal_add(&wlr_output->events.destroy, &m->destroy); + wl_list_insert(&mons, &m->link); wlr_output_enable(wlr_output, 1); -- cgit v1.2.3