From 06cd669ccb1ba4ced612cb78220a0228e56f684d Mon Sep 17 00:00:00 2001 From: "Jasper St. Pierre" Date: Mon, 10 Mar 2014 16:44:16 -0400 Subject: [PATCH] wayland: Fix bad copy-paste error in unset_fullscreen This was causing memory corruption and a bad crasher with simple-egl. --- src/wayland/meta-wayland-surface.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/wayland/meta-wayland-surface.c b/src/wayland/meta-wayland-surface.c index 15c94ea9a..1b0b0d4bf 100644 --- a/src/wayland/meta-wayland-surface.c +++ b/src/wayland/meta-wayland-surface.c @@ -874,8 +874,7 @@ static void xdg_surface_unset_fullscreen (struct wl_client *client, struct wl_resource *resource) { - MetaWaylandSurfaceExtension *xdg_surface = wl_resource_get_user_data (resource); - MetaWaylandSurface *surface = wl_container_of (xdg_surface, surface, xdg_surface); + MetaWaylandSurface *surface = wl_resource_get_user_data (resource); surface->pending.fullscreen.changed = TRUE; surface->pending.fullscreen.value = FALSE;