[mutter] wayland/actor-surface: Don't notify geometry-changed on mapped changes



commit c65f63b647986f3806db771323954a92e45bda52
Author: Jonas Dreßler <verdre v0yd nl>
Date:   Mon May 4 00:20:10 2020 +0200

    wayland/actor-surface: Don't notify geometry-changed on mapped changes
    
    There's no reason to notify the surface that its geometry changed when
    the visibility of the actor changes. This is only needed to update the
    outputs of the surface, so do that directly instead.
    
    https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1235

 src/wayland/meta-wayland-actor-surface.c | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)
---
diff --git a/src/wayland/meta-wayland-actor-surface.c b/src/wayland/meta-wayland-actor-surface.c
index 7041aa118..3d23234d6 100644
--- a/src/wayland/meta-wayland-actor-surface.c
+++ b/src/wayland/meta-wayland-actor-surface.c
@@ -73,6 +73,9 @@ clear_surface_actor (MetaWaylandActorSurface *actor_surface)
   g_signal_handlers_disconnect_by_func (priv->actor,
                                         meta_wayland_surface_notify_geometry_changed,
                                         surface);
+  g_signal_handlers_disconnect_by_func (priv->actor,
+                                        meta_wayland_surface_update_outputs_recursively,
+                                        surface);
   g_clear_object (&priv->actor);
 }
 
@@ -416,6 +419,6 @@ meta_wayland_actor_surface_reset_actor (MetaWaylandActorSurface *actor_surface)
                             G_CALLBACK (meta_wayland_surface_notify_geometry_changed),
                             surface);
   g_signal_connect_swapped (priv->actor, "notify::mapped",
-                            G_CALLBACK (meta_wayland_surface_notify_geometry_changed),
+                            G_CALLBACK (meta_wayland_surface_update_outputs_recursively),
                             surface);
 }


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]