Stacking subsurface siblings
Arnaud Vrac
rawoul at gmail.com
Tue Jun 16 07:46:55 PDT 2015
Hi,
I'm wondering if a behaviour of weston related to subsurfaces is either a
bug or intended. The protocol description is not clear on what happens in
the following cases:
Suppose I have a shell surface (BLUE) and two subsurfaces (RED, GREEN). I
want to stack them to I get RED, GREEN, BLUE from bottom to top.
If I do:
wl_subsurface_place_below(GREEN->subsurface, BLUE->surface);
wl_subsurface_place_below(RED->subsurface, GREEN->surface);
It works, but if I do:
wl_subsurface_place_below(RED->subsurface, GREEN->surface);
wl_subsurface_place_below(GREEN->subsurface, BLUE->surface);
The order is GREEN, RED, BLUE instead.
Logically the sibling relative order should be kept in the second case, but
it's not. The protocol is not clear on what should happen, what is the
expected result ?
I have attached a small sample to test easily.
--
Arnaud
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/wayland-devel/attachments/20150616/683d7290/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: subsurfaces.c
Type: text/x-csrc
Size: 5719 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/wayland-devel/attachments/20150616/683d7290/attachment-0001.c>
More information about the wayland-devel
mailing list