[PATCH 1/4] Add a destroy_signal on weston_output

Kristian Høgsberg hoegsberg at gmail.com
Wed May 1 18:19:01 PDT 2013


On Wed, May 01, 2013 at 09:52:10PM +0100, Richard Hughes wrote:
> ---
>  src/compositor.c | 3 +++
>  src/compositor.h | 1 +
>  2 files changed, 4 insertions(+)

This and the other three patches look good, committed.

Kristian

> diff --git a/src/compositor.c b/src/compositor.c
> index 693df2c..0214eed 100644
> --- a/src/compositor.c
> +++ b/src/compositor.c
> @@ -2906,6 +2906,8 @@ weston_output_destroy(struct weston_output *output)
>  {
>  	struct weston_compositor *c = output->compositor;
>  
> +	wl_signal_emit(&output->destroy_signal, output);
> +
>  	pixman_region32_fini(&output->region);
>  	pixman_region32_fini(&output->previous_damage);
>  	output->compositor->output_id_pool &= ~(1 << output->id);
> @@ -3064,6 +3066,7 @@ weston_output_init(struct weston_output *output, struct weston_compositor *c,
>  	weston_output_damage(output);
>  
>  	wl_signal_init(&output->frame_signal);
> +	wl_signal_init(&output->destroy_signal);
>  	wl_list_init(&output->animation_list);
>  	wl_list_init(&output->resource_list);
>  
> diff --git a/src/compositor.h b/src/compositor.h
> index eb8ad82..3b08f29 100644
> --- a/src/compositor.h
> +++ b/src/compositor.h
> @@ -175,6 +175,7 @@ struct weston_output {
>  	struct weston_output_zoom zoom;
>  	int dirty;
>  	struct wl_signal frame_signal;
> +	struct wl_signal destroy_signal;
>  	uint32_t frame_time;
>  	int disable_planes;
>  
> -- 
> 1.8.2.1
> 
> _______________________________________________
> wayland-devel mailing list
> wayland-devel at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/wayland-devel


More information about the wayland-devel mailing list