mirror of
https://codeberg.org/dwl/dwl.git
synced 2024-12-26 11:16:30 +00:00
don't return early if the first output commit fails
This commit is contained in:
parent
901d2e2d9d
commit
5f7d396996
1 changed files with 1 additions and 4 deletions
5
dwl.c
5
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);
|
||||
|
|
Loading…
Reference in a new issue