deeb1db1ac
After a MetaWaylandSurface is associated with a MetaWindow, it should be freed only when the MetaWindow is unmanaged. For wayland clients, the window is unmanaged when the resource is destroyed, but for X11 clients we want to wait for the unmap event. https://bugzilla.gnome.org/show_bug.cgi?id=705917