forked from mirror/dwl
don't double-add new monitor to mons
this was a copy/paste error
This commit is contained in:
parent
d42d8bda42
commit
5d66ea8a99
1 changed files with 1 additions and 2 deletions
3
dwl.c
3
dwl.c
|
@ -484,10 +484,9 @@ createmon(struct wl_listener *listener, void *data)
|
||||||
/* Set up event listeners */
|
/* Set up event listeners */
|
||||||
m->frame.notify = rendermon;
|
m->frame.notify = rendermon;
|
||||||
wl_signal_add(&wlr_output->events.frame, &m->frame);
|
wl_signal_add(&wlr_output->events.frame, &m->frame);
|
||||||
wl_list_insert(&mons, &m->link);
|
|
||||||
|
|
||||||
m->destroy.notify = cleanupmon;
|
m->destroy.notify = cleanupmon;
|
||||||
wl_signal_add(&wlr_output->events.destroy, &m->destroy);
|
wl_signal_add(&wlr_output->events.destroy, &m->destroy);
|
||||||
|
|
||||||
wl_list_insert(&mons, &m->link);
|
wl_list_insert(&mons, &m->link);
|
||||||
|
|
||||||
wlr_output_enable(wlr_output, 1);
|
wlr_output_enable(wlr_output, 1);
|
||||||
|
|
Loading…
Reference in a new issue