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

Pekka Paalanen ppaalanen at gmail.com
Wed May 7 01:47:08 PDT 2014


On Tue, 6 May 2014 14:40:53 -0700
Kristian Høgsberg <hoegsberg at gmail.com> wrote:

> 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.

The panel is not a window, so sub-surfaces can be made to work there
well enough.

It is for normal windows like registered with xdg_shell where
sub-surfaces are not suitable for tooltips. A sub-surface is a part of
the window, not another window. A tooltip is not expected to change the
window geometry, but a sub-surface does count into the window geometry.
Extruding sub-surfaces therefore affect the (parent) window geometry. It
is in the protocol spec.


Thanks,
pq


More information about the wayland-devel mailing list