libweston: Set default power state at output initialization
Rather than setting the initial power state when adding it (using weston_compositor_add_output), do that at the initilization stage. Reason being that the compositor can set up the output from the start as FORCED_OFF, before enabling the output, rather than enabling the output and then turning off the power of the output. Signed-off-by: marius vlad <marius.vlad@collabora.com>
This commit is contained in:
parent
9b1b95ca76
commit
70004a7edc
@ -6559,7 +6559,6 @@ weston_compositor_add_output(struct weston_compositor *compositor,
|
||||
wl_list_remove(&output->link);
|
||||
wl_list_insert(compositor->output_list.prev, &output->link);
|
||||
output->enabled = true;
|
||||
output->power_state = WESTON_OUTPUT_POWER_NORMAL;
|
||||
|
||||
wl_list_for_each(head, &output->head_list, output_link)
|
||||
weston_head_add_global(head);
|
||||
@ -7076,6 +7075,7 @@ weston_output_init(struct weston_output *output,
|
||||
output->eotf_mode = WESTON_EOTF_MODE_SDR;
|
||||
output->desired_protection = WESTON_HDCP_DISABLE;
|
||||
output->allow_protection = true;
|
||||
output->power_state = WESTON_OUTPUT_POWER_NORMAL;
|
||||
|
||||
wl_list_init(&output->head_list);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user