[PATCH wayland-protocols 0/3] xdg_surface base interface and xdg_tooltip
Jonas Ådahl
jadahl at gmail.com
Tue Jan 12 00:16:46 PST 2016
Hi,
These patches turns xdg_surface into a generic base interface that other xdg_*
roles would then extend. The point of this is to unify some concepts common to
all surfaces related to xdg_shell. The parts related to toplevel window
management was moved out to a new "xdg_toplevel" interface. xdg_popup was
changed to extend xdg_surface instead of being stand alone.
The common parts include the configure negotiation and window geometry. We will
probably wan't to configure surfaces other than toplevel ones even though only
xdg_surface is the only surface being configured right now. Popups needs window
geometry because they may have subsurfaces and dropshadow just as toplevel
surfaces.
A new surface role is also introduced: "xdg_tooltip". The xdg_tooltip surface
works similarly to xdg_popup except that it won't take an input grab while
being mapped. The intended use case for xdg_tooltip is of course tooltips, but
also other child surface kind of user interface elements that don't require
input grabs. The name "xdg_tooltip" is as such a bit misleading, so if anyone
have a better idea of a name let me know.
The reason for not using subsurfaces for tooltip surfaces and the like is that
we cannot add more flexible positioning logic. More on that later.
Jonas
Jonas Ådahl (3):
xdg-shell: Turn xdg_surface into a generic base interface
xdg-shell: Make get_popup take a xdg_surface instead of wl_surface
xdg-shell: Introduce xdg_tooltip
unstable/xdg-shell/xdg-shell-unstable-v6.xml | 276 +++++++++++++++++++--------
1 file changed, 195 insertions(+), 81 deletions(-)
--
2.4.3
More information about the wayland-devel
mailing list