weston: move weston_output_enable() into callers

Move the call out of wet_configure_windowed_output_from_config() and
into its callers.

This allows to migrate each frontend one by one.

Signed-off-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk>
Reviewed-by: Ian Ray <ian.ray@ge.com>
Reviewed-by: Daniel Stone <daniels@collabora.com>
Acked-by: Derek Foreman <derekf@osg.samsung.com>
dev
Pekka Paalanen 7 years ago
parent e19970fd6c
commit 3717e639ee
  1. 8
      compositor/main.c

@ -1007,8 +1007,6 @@ wet_configure_windowed_output_from_config(struct weston_output *output,
return -1;
}
weston_output_enable(output);
return 0;
}
@ -1152,6 +1150,8 @@ headless_backend_output_configure(struct wl_listener *listener, void *data)
if (wet_configure_windowed_output_from_config(output, &defaults) < 0)
weston_log("Cannot configure output \"%s\".\n", output->name);
weston_output_enable(output);
}
static int
@ -1370,6 +1370,8 @@ x11_backend_output_configure(struct wl_listener *listener, void *data)
if (wet_configure_windowed_output_from_config(output, &defaults) < 0)
weston_log("Cannot configure output \"%s\".\n", output->name);
weston_output_enable(output);
}
static int
@ -1486,6 +1488,8 @@ wayland_backend_output_configure(struct wl_listener *listener, void *data)
if (wet_configure_windowed_output_from_config(output, &defaults) < 0)
weston_log("Cannot configure output \"%s\".\n", output->name);
weston_output_enable(output);
}
static int

Loading…
Cancel
Save