diff options
author | marius vlad <marius.vlad@collabora.com> | 2023-04-03 19:45:25 +0300 |
---|---|---|
committer | Pekka Paalanen <pq@iki.fi> | 2023-04-04 08:13:58 +0000 |
commit | 9b1b95ca76686309a1ef6e3626185296e9e9ea10 (patch) | |
tree | bfbeec8509ea82676976a96101986f5acaf2fef6 | |
parent | 6f9c27ac077e6bf17dc85934d35d3fc3097eae69 (diff) | |
download | weston-9b1b95ca76686309a1ef6e3626185296e9e9ea10.tar.gz |
libweston: Damage the output after the output has been added
Rather than damaging the output before the output has been added with
weston_compositor_add_output, do that afterwards as to avoid scheduling
a repaint for that output *before* actually adding the output.
This would avoid the awkward case where we attempt to set initial power
state to normal, but we can't apply it at that stage.
Signed-off-by: marius vlad <marius.vlad@collabora.com>
-rw-r--r-- | libweston/compositor.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libweston/compositor.c b/libweston/compositor.c index 88a9f1bb..f3ab043c 100644 --- a/libweston/compositor.c +++ b/libweston/compositor.c @@ -7267,7 +7267,6 @@ weston_output_enable(struct weston_output *output) wl_list_init(&output->paint_node_z_order_list); weston_output_update_matrix(output); - weston_output_damage(output); weston_log("Output '%s' attempts EOTF mode: %s\n", output->name, weston_eotf_mode_to_str(output->eotf_mode)); @@ -7290,6 +7289,7 @@ weston_output_enable(struct weston_output *output) } weston_compositor_add_output(output->compositor, output); + weston_output_damage(output); head_names = weston_output_create_heads_string(output); weston_log("Output '%s' enabled with head(s) %s\n", |