wayland: Fix bad copy-paste error in unset_fullscreen

This was causing memory corruption and a bad crasher with simple-egl.
This commit is contained in:
Jasper St. Pierre 2014-03-10 16:44:16 -04:00
parent 81eb7d9537
commit 06cd669ccb

View File

@ -874,8 +874,7 @@ static void
xdg_surface_unset_fullscreen (struct wl_client *client, xdg_surface_unset_fullscreen (struct wl_client *client,
struct wl_resource *resource) struct wl_resource *resource)
{ {
MetaWaylandSurfaceExtension *xdg_surface = wl_resource_get_user_data (resource); MetaWaylandSurface *surface = wl_resource_get_user_data (resource);
MetaWaylandSurface *surface = wl_container_of (xdg_surface, surface, xdg_surface);
surface->pending.fullscreen.changed = TRUE; surface->pending.fullscreen.changed = TRUE;
surface->pending.fullscreen.value = FALSE; surface->pending.fullscreen.value = FALSE;