[PATCH weston] window.c: Set the input region of the tooltip to empty
Pekka Paalanen
ppaalanen at gmail.com
Wed May 7 22:41:41 PDT 2014
Please always use reply-to-all, you have dropped a lot people from CC.
On Wed, 07 May 2014 11:02:56 -0700
Bill Spitzak <spitzak at gmail.com> wrote:
> On 05/07/2014 01:47 AM, Pekka Paalanen wrote:
>
> > 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.
>
> Are you saying that a sub-surface that extends outside the area of the
> parent surface should cause mouse/touch events in this extended area to
> be delivered to the parent?
No.
If a sub-surface can receive input events, the input events will refer
the sub-surface's wl_surface.
However, the window geometry for window management purposes is a very
different thing.
> My personal feeling is that the intuitive approach that events are
> delivered "normally" to subsurfaces is the correct one. Especially if
> subsurfaces are going to be the method of embedding one client inside
> another. I think it is ok to say that subsurfaces with non-empty input
> areas are broken in toytoolkit.
Sub-surfaces cannot be used to embed another client.
- pq
More information about the wayland-devel
mailing list