mirror of
https://gitlab.freedesktop.org/wayland/wayland.git
synced 2025-10-29 05:40:16 -04:00
protocol: remove wl_subsurface lifetime contradiction
This statement assumes that a wl_surface can be destroyed before the corresponding wl_subsurface, which is not true, as wl_surface description explicitly states that the role object must be destroyed before the wl_surface itself. Signed-off-by: Kirill Primak <vyivel@eclair.cafe>
This commit is contained in:
parent
86d73b2da2
commit
68dfa1183f
1 changed files with 4 additions and 6 deletions
|
|
@ -2938,12 +2938,10 @@
|
||||||
synchronized mode, and then assume that all its child and grand-child
|
synchronized mode, and then assume that all its child and grand-child
|
||||||
sub-surfaces are synchronized, too, without explicitly setting them.
|
sub-surfaces are synchronized, too, without explicitly setting them.
|
||||||
|
|
||||||
If the wl_surface associated with the wl_subsurface is destroyed, the
|
Destroying a sub-surface takes effect immediately. If you need to
|
||||||
wl_subsurface object becomes inert. Note, that destroying either object
|
synchronize the removal of a sub-surface to the parent surface update,
|
||||||
takes effect immediately. If you need to synchronize the removal
|
unmap the sub-surface first by attaching a NULL wl_buffer, update parent,
|
||||||
of a sub-surface to the parent surface update, unmap the sub-surface
|
and then destroy the sub-surface.
|
||||||
first by attaching a NULL wl_buffer, update parent, and then destroy
|
|
||||||
the sub-surface.
|
|
||||||
|
|
||||||
If the parent wl_surface object is destroyed, the sub-surface is
|
If the parent wl_surface object is destroyed, the sub-surface is
|
||||||
unmapped.
|
unmapped.
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue