[PATCH weston 1/2] shell: Set input region of the black fullscreen surface

Kristian Høgsberg hoegsberg at gmail.com
Tue Jan 15 12:36:21 PST 2013


On Tue, Jan 15, 2013 at 09:25:55PM +0100, Jonas Ådahl wrote:
> The input region of the black surface placed under the fullscreen shell
> surface did not have a specified input region. Because the initial input
> region of a surface is infinity, no other surface on any other output
> could get any focus.

Thanks, applied.

Kristian

> Signed-off-by: Jonas Ådahl <jadahl at gmail.com>
> ---
>  src/shell.c |    2 ++
>  1 file changed, 2 insertions(+)
> 
> diff --git a/src/shell.c b/src/shell.c
> index aa1c7c1..cdbb756 100644
> --- a/src/shell.c
> +++ b/src/shell.c
> @@ -1638,6 +1638,8 @@ create_black_surface(struct weston_compositor *ec,
>  	weston_surface_set_color(surface, 0.0, 0.0, 0.0, 1);
>  	pixman_region32_fini(&surface->opaque);
>  	pixman_region32_init_rect(&surface->opaque, 0, 0, w, h);
> +	pixman_region32_fini(&surface->input);
> +	pixman_region32_init_rect(&surface->input, 0, 0, w, h);
>  
>  	return surface;
>  }
> -- 
> 1.7.10.4
> 
> _______________________________________________
> 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