diff --git a/src/compositor/meta-window-actor.c b/src/compositor/meta-window-actor.c index df7b8d7ca..b367317c3 100644 --- a/src/compositor/meta-window-actor.c +++ b/src/compositor/meta-window-actor.c @@ -471,6 +471,9 @@ meta_window_actor_constructed (GObject *object) priv->compositor = window->display->compositor; + /* Hang our compositor window state off the MetaWindow for fast retrieval */ + meta_window_set_compositor_private (window, object); + meta_window_actor_update_surface (self); meta_window_actor_update_opacity (self); @@ -1448,9 +1451,6 @@ meta_window_actor_new (MetaWindow *window) meta_window_actor_sync_actor_geometry (self, priv->window->placed); - /* Hang our compositor window state off the MetaWindow for fast retrieval */ - meta_window_set_compositor_private (window, G_OBJECT (self)); - if (window->layer == META_LAYER_OVERRIDE_REDIRECT) window_group = compositor->top_window_group; else