diff options
author | Giulio Camuffo <giuliocamuffo@gmail.com> | 2015-05-06 21:41:57 +0300 |
---|---|---|
committer | Bryce Harrington <bryce@osg.samsung.com> | 2015-05-08 14:09:02 -0700 |
commit | b114715dae4b8899ce0bc4fb13f98b4c0f4f1896 (patch) | |
tree | 006f469db77fd0491a5ba27bbbbdcfc970b4b1d7 /src/compositor-rdp.c | |
parent | 22f343017560764e82d63535fbf5617d999a4038 (diff) | |
download | weston-b114715dae4b8899ce0bc4fb13f98b4c0f4f1896.tar.gz |
compositor: send the output_created signal after inserting it in the list
The compositor's output_created signal used to be sent in weston_output_init()
which the backend call before putting the output in the output_list.
This caused problems when creating a new view in a listener to that signal,
because weston_view_assign_output() doesn't yet know the new output exists.
To fix this add a new weston_composito_add_output() func which adds the
output in the list and later sends the signal, and make the backends call
that.
Diffstat (limited to 'src/compositor-rdp.c')
-rw-r--r-- | src/compositor-rdp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/compositor-rdp.c b/src/compositor-rdp.c index 6955d493..0d649286 100644 --- a/src/compositor-rdp.c +++ b/src/compositor-rdp.c @@ -488,7 +488,7 @@ rdp_compositor_create_output(struct rdp_compositor *c, int width, int height) output->base.switch_mode = rdp_switch_mode; c->output = output; - wl_list_insert(c->base.output_list.prev, &output->base.link); + weston_compositor_add_output(&c->base, &output->base); return 0; out_shadow_surface: |