frame callbacks and sub_surfaces

Pekka Paalanen ppaalanen at gmail.com
Tue Nov 1 08:52:51 UTC 2022


On Mon, 31 Oct 2022 10:14:42 -0700
Joel Winarske <joel.winarske at gmail.com> wrote:

> Thank you for the enlightenment!
> 
> Adding the ordered commit calls was the missing link.
> 
> Do the commit calls need to happen based on the active Z-order, or based on
> the order of surface creation?

They need to be ordered by sub-surface relationships, i.e. what is the
parent surface for a sub-surface.

Z-order is completely irrelevant here. Also wl_surface creation order
is irrelevant. What is relevant is what you set as the parent
wl_surface in wl_subcompositor.get_subsurface request.

You can create a sub-surface tree in any order by creating the
wl_subsurface objects in any order. The relevant thing is the final
parent surface <-> sub-surface association graph (actually a tree) when
you start doing updates (commits) to the wl_surfaces.


Thanks,
pq
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 833 bytes
Desc: OpenPGP digital signature
URL: <https://lists.freedesktop.org/archives/wayland-devel/attachments/20221101/53105197/attachment.sig>


More information about the wayland-devel mailing list