[PATCH weston] window.c: Set the input region of the tooltip to empty
Kristian Høgsberg
hoegsberg at gmail.com
Fri May 9 12:48:23 PDT 2014
On Wed, May 07, 2014 at 11:47:08AM +0300, Pekka Paalanen wrote:
> 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.
No, sure if no other geometry information is available. For xdg-shell
windows, the window geometry overrides that though. And I don't think
there's a clear distinction between being part of the window or being
a separate window here, and I don't see why it would useful...
Kristian
>
>
> Thanks,
> pq
More information about the wayland-devel
mailing list