[mutter/wayland] wayland: Fix bad copy-paste error in unset_fullscreen



commit 06cd669ccb1ba4ced612cb78220a0228e56f684d
Author: Jasper St. Pierre <jstpierre mecheye net>
Date:   Mon Mar 10 16:44:16 2014 -0400

    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 files changed, 1 insertions(+), 2 deletions(-)
---
diff --git a/src/wayland/meta-wayland-surface.c b/src/wayland/meta-wayland-surface.c
index 15c94ea..1b0b0d4 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;


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]