wayland-surface: Unmanage the window when destroying xdg_surface/xdg_popup

Also, unparent the actor when destroying a subsurface, as well, and
don't free the surface when we destroy the MetaWindow.
This commit is contained in:
Jasper St. Pierre
2013-11-26 13:04:37 -05:00
parent 602307e694
commit fe26cb5989
3 changed files with 82 additions and 24 deletions

View File

@ -2068,9 +2068,6 @@ meta_window_unmanage (MetaWindow *window,
else
meta_display_unregister_wayland_window (window->display, window);
if (window->surface)
meta_wayland_surface_free (window->surface);
g_slist_free_full (window->pending_pings, (GDestroyNotify) ping_data_free);
meta_prefs_remove_listener (prefs_changed_callback, window);