[mutter/wayland] wayland-surface: Repick after cleaning up everything else



commit 3e35cac67a8a65e3ded85c936b942b900c1d2780
Author: Jasper St. Pierre <jstpierre mecheye net>
Date:   Sat Feb 1 16:29:36 2014 -0500

    wayland-surface: Repick after cleaning up everything else
    
    Just a code cleanup to keep all the freeing code together.

 src/wayland/meta-wayland-surface.c |    6 ++----
 1 files changed, 2 insertions(+), 4 deletions(-)
---
diff --git a/src/wayland/meta-wayland-surface.c b/src/wayland/meta-wayland-surface.c
index d33b9f3..5d8fd45 100644
--- a/src/wayland/meta-wayland-surface.c
+++ b/src/wayland/meta-wayland-surface.c
@@ -518,14 +518,12 @@ meta_wayland_surface_free (MetaWaylandSurface *surface)
 
   meta_wayland_buffer_reference (&surface->buffer_ref, NULL);
   double_buffered_state_destroy (&surface->pending);
-
-  meta_wayland_compositor_repick (compositor);
-
   g_object_unref (surface->surface_actor);
-
   if (surface->resource)
     wl_resource_set_user_data (surface->resource, NULL);
   g_slice_free (MetaWaylandSurface, surface);
+
+  meta_wayland_compositor_repick (compositor);
 }
 
 static void


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