[PATCH weston] window.c: Set the input region of the tooltip to empty

Kristian Høgsberg hoegsberg at gmail.com
Tue May 6 14:40:53 PDT 2014


On Mon, May 05, 2014 at 05:02:15PM +0300, Ander Conselvan de Oliveira wrote:
> From: Ander Conselvan de Oliveira <ander.conselvan.de.oliveira at intel.com>
> 
> Otherwise it might receive touch events.

I think a better approach is to just hide the tooltip if it (or the panel)
gets touch events.  I don't think I agree with Pekka that we can't use
subsurfaces for this, but I guess I'm not sure what the problem he sees there
is.

Kristian

> 
> https://bugs.freedesktop.org/show_bug.cgi?id=78207
> 
> ---
>  clients/window.c | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/clients/window.c b/clients/window.c
> index b7febed..f667cdf 100644
> --- a/clients/window.c
> +++ b/clients/window.c
> @@ -1992,6 +1992,7 @@ window_create_tooltip(struct tooltip *tooltip)
>  	widget_set_allocation(tooltip->widget,
>  			      tooltip->x, tooltip->y + offset_y,
>  			      extents.width + 20, 20 + margin * 2);
> +	widget_input_region_add(tooltip->widget, NULL);
>  
>  	return 0;
>  }
> -- 
> 1.8.3.2
> 
> _______________________________________________
> 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