wayland-surface: Embed MetaWaylandSurfaceExtension in MetaWaylandSurface

This makes it easier to support xdg_surface.destroy, which we're
going to add support for next commit...
This commit is contained in:
Jasper St. Pierre
2013-11-19 17:32:59 -05:00
parent 0824eb7c96
commit 5959457c73
3 changed files with 95 additions and 114 deletions

View File

@ -538,7 +538,7 @@ meta_wayland_pointer_end_popup_grab (MetaWaylandPointer *pointer)
wl_list_for_each_safe (popup, tmp, &popup_grab->all_popups, link)
{
MetaWaylandSurfaceExtension *shell_surface = popup->surface->xdg_surface;
MetaWaylandSurfaceExtension *shell_surface = &popup->surface->xdg_surface;
struct wl_client *client = wl_resource_get_client (shell_surface->resource);
struct wl_display *display = wl_client_get_display (client);
uint32_t serial;