Add error handling to wlr_output_commit
This commit is contained in:
parent
181ad7eea3
commit
8c6efe2a53
1 changed files with 5 additions and 1 deletions
|
@ -245,7 +245,11 @@ new_output_notify(struct wl_listener *listener, void *data)
|
||||||
struct wlr_output_mode *mode =
|
struct wlr_output_mode *mode =
|
||||||
wl_container_of(wlr_output->modes.prev, mode, link);
|
wl_container_of(wlr_output->modes.prev, mode, link);
|
||||||
wlr_output_set_mode(wlr_output, mode);
|
wlr_output_set_mode(wlr_output, mode);
|
||||||
wlr_output_commit(wlr_output);
|
|
||||||
|
if (!wlr_output_commit(wlr_output)) {
|
||||||
|
wlr_log(WLR_ERROR, "Failed to modeset output");
|
||||||
|
return;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
struct kiwmi_output *output = output_create(wlr_output, desktop);
|
struct kiwmi_output *output = output_create(wlr_output, desktop);
|
||||||
|
|
Loading…
Reference in a new issue