summaryrefslogtreecommitdiff
path: root/dwl.c
diff options
context:
space:
mode:
Diffstat (limited to 'dwl.c')
-rw-r--r--dwl.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/dwl.c b/dwl.c
index 1eee591..1bfe8cf 100644
--- a/dwl.c
+++ b/dwl.c
@@ -898,10 +898,7 @@ createmon(struct wl_listener *listener, void *data)
LISTEN(&wlr_output->events.request_state, &m->request_state, requestmonstate);
wlr_output_state_set_enabled(&state, 1);
- if (!wlr_output_commit_state(wlr_output, &state)) {
- wlr_output_state_finish(&state);
- return;
- }
+ wlr_output_commit_state(wlr_output, &state);
wlr_output_state_finish(&state);
wl_list_insert(&mons, &m->link);