On the client side, it is as you said, you'll need to make the request on
the GtkWindow's wl_surface.

On the server side, in the protocol implementation you will get a
wl_resource* surface_resource which corresponds to the wl_surface object.
You can then do `weston_surface *surface =
wl_resource_get_user_data(surface_resource);` to get the weston_surface. I
hope this helps.

On Fri, Jun 21, 2019 at 8:28 AM adlo <[email protected]> wrote:

> > On 22 May 2019, at 21:36, Ilia Bozhinov <[email protected]> wrote:
> >
> > 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.
> >
>
> With such a protocol, how would I create a window using GTK and then tell
> the compositor that it's a special surface? Client-side, I may have access
> to the GtkWindow's wl_surface, I think, whereas server-side I have objects
> such as weston_surface, weston_desktop_surface. How are these two connected?
>
> Regards
>
> adlo
_______________________________________________
wayland-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/wayland-devel

Reply via email to