mirror of
https://github.com/brl/mutter.git
synced 2025-08-06 08:34:41 +00:00
wayland/surface: Don't update outputs recursively on mapped changes
There's no need to update the outputs recursively in case the actor gets mapped or unmapped. That's because mapping happens recursively itself, so if a window with multiple subsurfaces is shown, all subsurfaces will receive a "notify::mapped" signal. Since this was the only remaining user of meta_wayland_surface_update_outputs_recursively(), we can now remove that function. https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1358
This commit is contained in:

committed by
Robert Mader

parent
35f847ac6d
commit
0b9a71ea3c
@@ -1295,17 +1295,6 @@ meta_wayland_surface_update_outputs (MetaWaylandSurface *surface)
|
||||
surface);
|
||||
}
|
||||
|
||||
void
|
||||
meta_wayland_surface_update_outputs_recursively (MetaWaylandSurface *surface)
|
||||
{
|
||||
MetaWaylandSurface *subsurface_surface;
|
||||
|
||||
meta_wayland_surface_update_outputs (surface);
|
||||
|
||||
META_WAYLAND_SURFACE_FOREACH_SUBSURFACE (surface, subsurface_surface)
|
||||
meta_wayland_surface_update_outputs_recursively (subsurface_surface);
|
||||
}
|
||||
|
||||
void
|
||||
meta_wayland_surface_notify_unmapped (MetaWaylandSurface *surface)
|
||||
{
|
||||
|
Reference in New Issue
Block a user