[PATCH weston 03/15] libweston: use helper var in weston_compositor_remove_output
Armin Krezović
krezovic.armin at gmail.com
Tue Apr 4 19:31:23 UTC 2017
On 04.04.2017 12:58, Pekka Paalanen wrote:
> From: Pekka Paalanen <pekka.paalanen at collabora.co.uk>
>
> To shorten lines.
>
> Signed-off-by: Pekka Paalanen <pekka.paalanen at collabora.co.uk>
Trivial.
Reviewed-by: Armin Krezović <krezovic.armin at gmail.com>
Thanks, Armin.
> ---
> libweston/compositor.c | 7 ++++---
> 1 file changed, 4 insertions(+), 3 deletions(-)
>
> diff --git a/libweston/compositor.c b/libweston/compositor.c
> index 7510fab..60cbae0 100644
> --- a/libweston/compositor.c
> +++ b/libweston/compositor.c
> @@ -4541,22 +4541,23 @@ weston_output_enable_undo(struct weston_output *output)
> static void
> weston_compositor_remove_output(struct weston_output *output)
> {
> + struct weston_compositor *compositor = output->compositor;
> struct wl_resource *resource;
> struct weston_view *view;
>
> assert(output->destroying);
>
> - wl_list_for_each(view, &output->compositor->view_list, link) {
> + wl_list_for_each(view, &compositor->view_list, link) {
> if (view->output_mask & (1u << output->id))
> weston_view_assign_output(view);
> }
>
> weston_presentation_feedback_discard_list(&output->feedback_list);
>
> - weston_compositor_reflow_outputs(output->compositor, output, output->width);
> + weston_compositor_reflow_outputs(compositor, output, output->width);
> wl_list_remove(&output->link);
>
> - wl_signal_emit(&output->compositor->output_destroyed_signal, output);
> + wl_signal_emit(&compositor->output_destroyed_signal, output);
> wl_signal_emit(&output->destroy_signal, output);
>
> wl_resource_for_each(resource, &output->resource_list) {
>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 870 bytes
Desc: OpenPGP digital signature
URL: <https://lists.freedesktop.org/archives/wayland-devel/attachments/20170404/6a00f5b4/attachment.sig>
More information about the wayland-devel
mailing list