From c65f63b647986f3806db771323954a92e45bda52 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jonas=20Dre=C3=9Fler?= Date: Mon, 4 May 2020 00:20:10 +0200 Subject: [PATCH] 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); }