wl_subsurace position - double buffered state?

Martin Stransky stransky at redhat.com
Thu Oct 31 10:20:10 UTC 2019


On 10/30/19 8:58 AM, Jonas Ã…dahl wrote:
[...]


> Quoting the specification of the set_position request:
> 
> 	The scheduled coordinates will take effect whenever the state of the
> 	parent surface is applied. When this happens depends on whether the
> 	parent surface is in synchronized mode or not. See
> 	wl_subsurface.set_sync and wl_subsurface.set_desync for details.
> 
> In short, you need to commit the parent surface for the new position to
> take effect. The reason for this is that the position of the surface is
> more of a state of the parent surface rather than the subsurface itself,
> and it is likely that if you move the subsurface, something on the
> parent surface needs to be updated at the same time in order to avoid
> intermediate incorrectly rendered frames.
> 

Thanks a lot, it works as expected now.

Martin



More information about the wayland-devel mailing list