mirror of
https://github.com/brl/mutter.git
synced 2024-11-22 16:10:41 -05:00
wayland/subsurface: Reset position to (0, 0) in permanent unmap helper
To make sure a new wl_subsurface created for the same wl_surface won't inherit the position from the wl_subsurface being destroyed. v2: * Move into permanently_unmap_subsurface Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/3364>
This commit is contained in:
parent
9dc5d98607
commit
cdfc8cf967
@ -409,6 +409,7 @@ permanently_unmap_subsurface (MetaWaylandSurface *surface)
|
||||
transaction = meta_wayland_transaction_new (surface->compositor);
|
||||
meta_wayland_transaction_add_placement_op (transaction,
|
||||
surface->protocol_state.parent, op);
|
||||
meta_wayland_transaction_add_subsurface_position (transaction, surface, 0, 0);
|
||||
meta_wayland_transaction_commit (transaction);
|
||||
|
||||
surface->protocol_state.parent = NULL;
|
||||
|
Loading…
Reference in New Issue
Block a user