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
No known key found for this signature in database
GPG Key ID: E538897EE11B9624
1 changed files with 1 additions and 4 deletions

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);
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);