don't return early if the first output commit fails

This commit is contained in:
Leonardo Hernández Hernández 2023-11-30 22:22:21 -06:00
parent 901d2e2d9d
commit 5f7d396996
Failed to generate hash of commit

5
dwl.c
View file

@ -898,10 +898,7 @@ createmon(struct wl_listener *listener, void *data)
LISTEN(&wlr_output->events.request_state, &m->request_state, requestmonstate); LISTEN(&wlr_output->events.request_state, &m->request_state, requestmonstate);
wlr_output_state_set_enabled(&state, 1); wlr_output_state_set_enabled(&state, 1);
if (!wlr_output_commit_state(wlr_output, &state)) { wlr_output_commit_state(wlr_output, &state);
wlr_output_state_finish(&state);
return;
}
wlr_output_state_finish(&state); wlr_output_state_finish(&state);
wl_list_insert(&mons, &m->link); wl_list_insert(&mons, &m->link);