[PATCH weston] compositor: stop sending spurious events on mode switch

Pekka Paalanen ppaalanen at gmail.com
Mon Nov 10 23:00:54 PST 2014


On Mon, 10 Nov 2014 10:29:59 -0600
Derek Foreman <derekf at osg.samsung.com> wrote:

> commit 6ae7bc982fa accidentally made weston_output_mode_switch_temporary
> send done events when it shouldn't.
> 
> Signed-off-by: Derek Foreman <derekf at osg.samsung.com>
> ---
>  src/compositor.c | 3 +++
>  1 file changed, 3 insertions(+)
> 
> diff --git a/src/compositor.c b/src/compositor.c
> index 9dcabe3..6a81cc7 100644
> --- a/src/compositor.c
> +++ b/src/compositor.c
> @@ -148,6 +148,9 @@ static void weston_mode_switch_finish(struct weston_output *output,
>  
>  	pixman_region32_fini(&old_output_region);
>  
> +	if (!mode_changed && !scale_changed)
> +		return;
> +
>  	/* notify clients of the changes */
>  	wl_resource_for_each(resource, &output->resource_list) {
>  		if (mode_changed) {

Pushed.

Thanks,
pq


More information about the wayland-devel mailing list