diff options
author | Jasper St. Pierre <jstpierre@mecheye.net> | 2014-03-10 16:44:16 -0400 |
---|---|---|
committer | Jasper St. Pierre <jstpierre@mecheye.net> | 2014-03-10 16:45:05 -0400 |
commit | 06cd669ccb1ba4ced612cb78220a0228e56f684d (patch) | |
tree | 3d6408e32c43b29837990a9f257e63a0b57aeea2 /src | |
parent | 81eb7d9537666d98a769cf89a1d85ea624b3032c (diff) | |
download | mutter-06cd669ccb1ba4ced612cb78220a0228e56f684d.tar.gz |
wayland: Fix bad copy-paste error in unset_fullscreen
This was causing memory corruption and a bad crasher with simple-egl.
Diffstat (limited to 'src')
-rw-r--r-- | src/wayland/meta-wayland-surface.c | 3 |
1 files changed, 1 insertions, 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; |