aboutsummaryrefslogtreecommitdiff
path: root/dwl.c
diff options
context:
space:
mode:
authorDevin J. Pohly <djpohly@gmail.com>2020-07-23 18:14:33 -0400
committerDevin J. Pohly <djpohly@gmail.com>2020-07-23 18:14:33 -0400
commit5d66ea8a99a1638b4210b2d2be9ccc644691eb44 (patch)
tree6195c4dc69a5abcca2788e0e1f1ff406b4467bdb /dwl.c
parentd42d8bda42d2cd4a8da986a895b27d13b6960c1a (diff)
don't double-add new monitor to mons
this was a copy/paste error
Diffstat (limited to 'dwl.c')
-rw-r--r--dwl.c3
1 files changed, 1 insertions, 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);