summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonas Dreßler <verdre@v0yd.nl>2020-05-04 00:20:10 +0200
committerJonas Dreßler <verdre@v0yd.nl>2020-05-26 14:54:57 +0200
commitc65f63b647986f3806db771323954a92e45bda52 (patch)
tree3730eb6e12d4408d9294cedfff9697128c7a0ab2
parent79d981aac9b0cdf19d96b47754b5f20a80e60c21 (diff)
downloadmutter-c65f63b647986f3806db771323954a92e45bda52.tar.gz
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
-rw-r--r--src/wayland/meta-wayland-actor-surface.c5
1 files changed, 4 insertions, 1 deletions
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);
}