<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"></head><body dir="auto"><div dir="ltr"></div><div dir="ltr">On 22 May 2019, at 21:36, Ilia Bozhinov <<a href="mailto:ammen99@gmail.com">ammen99@gmail.com</a>> wrote:<br><br></div><blockquote type="cite"><div dir="ltr"><div dir="ltr"><div>If you have a panel/any UI elements, then you most probably have a protocol to communicate that the UI element surface is a special surface. You could then just extend this protocol so that you specify Z-ordering of these surfaces, and then the compositor should respect that.</div><div><br></div><div>If it might help here is the wlr-layer-shell protocol: <a href="https://github.com/swaywm/wlr-protocols/blob/master/unstable/wlr-layer-shell-unstable-v1.xml">https://github.com/swaywm/wlr-protocols/blob/master/unstable/wlr-layer-shell-unstable-v1.xml</a></div><div><br></div><div>With it, you basically have several layers where you can put the UI elements that you have drawn outside of the compositor, and then you can use the `namespace` to adjust ordering within the specific layer.</div><div><br></div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"></blockquote></div></div>
</div></blockquote><br><div>I am attempting to implement wlr-layer-shell on a libweston-based compositor.</div><div><br></div><div>What would be the equivalent of wlr_surface_has_buffer () for a weston_surface?</div><div><br></div><div>In the get_popup function, what could I use instead of wlr_xdg_surface and wlr_xdg_popup?</div><div><br></div><div>Regards</div><div><br></div><div>adlo</div></body></html>