<div dir="ltr">Hi,<div><br></div><div>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:</div><div><br></div><div>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.</div><div><br></div><div>If I do:</div><div><br></div><div>wl_subsurface_place_below(GREEN->subsurface, BLUE->surface);<br></div><div>wl_subsurface_place_below(RED->subsurface, GREEN->surface);<br></div><div><div><br></div><div>It works, but if I do:</div><div><br></div><div>wl_subsurface_place_below(RED->subsurface, GREEN->surface);<br></div><div>wl_subsurface_place_below(GREEN->subsurface, BLUE->surface);<br></div><div><br></div><div>The order is GREEN, RED, BLUE instead.</div><div><br></div><div>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 ?</div><div><br></div><div>I have attached a small sample to test easily.</div><div><br></div>-- <br><div class="gmail_signature">Arnaud</div>
</div></div>