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

Jasper St. Pierre jstpierre at mecheye.net
Fri May 9 17:09:43 PDT 2014


This requires a bit of insider knowledge: we're planning on adding a
set_window_geometry request to xdg_shell explicitly override the window
geometry rectangle for a surface. I don't think we've talked about this on
the list before.

This makes subsurfaces viable for tooltips, with the caveat that the
compositor can't do things like fade them in or out for create/destroy
effects. The more I think about this, the more OK I am with it. The client
should probably fade in/out tooltips themselves if it really wants fancy
effects.


On Fri, May 9, 2014 at 3:48 PM, Kristian Høgsberg <hoegsberg at gmail.com>wrote:

> 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
> _______________________________________________
> wayland-devel mailing list
> wayland-devel at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/wayland-devel
>



-- 
  Jasper
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/wayland-devel/attachments/20140509/29d37fd7/attachment.html>


More information about the wayland-devel mailing list