summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLeonardo Hernández Hernández <leohdz172@proton.me>2023-11-30 22:22:21 -0600
committerLeonardo Hernández Hernández <leohdz172@proton.me>2023-11-30 22:39:03 -0600
commit5f7d396996ce67bce4f2a35c936e9879576b5aa1 (patch)
tree5005b478f5af5d8142cf339984afd2ec1b7c234f
parent901d2e2d9d54ab6c6a66d0877402bab04a60093e (diff)
don't return early if the first output commit fails
-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);