Rendering window thumbnails etc
Ilia Bozhinov
ammen99 at gmail.com
Fri Jun 21 06:37:18 UTC 2019
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 <adloconwy at gmail.com> wrote:
> > On 22 May 2019, at 21:36, Ilia Bozhinov <ammen99 at gmail.com> 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/wayland-devel/attachments/20190621/a46948e8/attachment.html>
More information about the wayland-devel
mailing list