layout-output example: handle empty config

This commit is contained in:
Tony Crisci 2017-08-16 15:00:15 -04:00 committed by Drew DeVault
parent 44181b57ac
commit 2e9e237f9d
3 changed files with 33 additions and 3 deletions

View file

@ -33,7 +33,7 @@ void wlr_output_layout_add(struct wlr_output_layout *layout,
wl_list_insert(&layout->outputs, &layout_output->link);
}
static struct wlr_output_layout_output *wlr_output_layout_get(
struct wlr_output_layout_output *wlr_output_layout_get(
struct wlr_output_layout *layout, struct wlr_output *reference) {
struct wlr_output_layout_output *ret = NULL;
struct wlr_output_layout_output *_output;