summaryrefslogtreecommitdiff
path: root/src/wayland/meta-wayland-surface.c
diff options
context:
space:
mode:
authorJonas Ådahl <jadahl@gmail.com>2016-03-04 16:13:04 +0800
committerJonas Ådahl <jadahl@gmail.com>2016-05-01 21:11:27 +0800
commitca44770f1ae8323bbc16ebc57663d517ef827893 (patch)
treea0d1bbcb3cf9c7e682d14bd7de0689048348d5a8 /src/wayland/meta-wayland-surface.c
parent9028e30b39741f4c611ce92a3864ea5f3b8541ec (diff)
downloadmutter-ca44770f1ae8323bbc16ebc57663d517ef827893.tar.gz
wayland: Sync surface actor state in actor role commit handler
This'll also make the actor state already synchronized when shell surfaces handlers apply their state. https://bugzilla.gnome.org/show_bug.cgi?id=763431
Diffstat (limited to 'src/wayland/meta-wayland-surface.c')
-rw-r--r--src/wayland/meta-wayland-surface.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/wayland/meta-wayland-surface.c b/src/wayland/meta-wayland-surface.c
index 1da9f3c2b..e6038f262 100644
--- a/src/wayland/meta-wayland-surface.c
+++ b/src/wayland/meta-wayland-surface.c
@@ -726,8 +726,6 @@ apply_pending_state (MetaWaylandSurface *surface,
pending_state_signals[PENDING_STATE_SIGNAL_APPLIED],
0);
- meta_surface_actor_wayland_sync_state (surface_actor_wayland);
-
pending_state_reset (pending);
g_list_foreach (surface->subsurfaces, parent_surface_state_applied, NULL);
@@ -1984,6 +1982,9 @@ actor_surface_commit (MetaWaylandSurfaceRole *surface_role,
MetaWaylandSurface *surface =
meta_wayland_surface_role_get_surface (surface_role);
+ meta_surface_actor_wayland_sync_state (
+ META_SURFACE_ACTOR_WAYLAND (surface->surface_actor));
+
queue_surface_actor_frame_callbacks (surface, pending);
}