Update e_surface for recent wayland changes.
authorChris Michael <devilhorns@comcast.net>
Fri, 7 Jun 2013 17:34:39 +0000 (18:34 +0100)
committerChris Michael <devilhorns@comcast.net>
Fri, 7 Jun 2013 17:34:39 +0000 (18:34 +0100)
Signed-off-by: Chris Michael <devilhorns@comcast.net>
src/bin/e_wayland/e_surface.c

index f21401d525f3e6dbb58ea8337cff25652629bfe6..c1f15895993d9bb309411ea653041c9ad2e5afc7 100644 (file)
@@ -34,7 +34,7 @@ e_surface_new(unsigned int id)
    if (!(es = E_NEW(E_Surface, 1))) return NULL;
 
    /* initialize the destroy signal */
-   wl_signal_init(&es->wl.surface.resource.destroy_signal);
+   wl_signal_init(&es->wl.resource.destroy_signal);
 
    /* initialize the link */
    wl_list_init(&es->wl.link);
@@ -55,11 +55,11 @@ e_surface_new(unsigned int id)
                              UINT32_MAX, UINT32_MAX);
 
    /* setup the surface object */
-   es->wl.surface.resource.object.id = id;
-   es->wl.surface.resource.object.interface = &wl_surface_interface;
-   es->wl.surface.resource.object.implementation = 
+   es->wl.resource.object.id = id;
+   es->wl.resource.object.interface = &wl_surface_interface;
+   es->wl.resource.object.implementation = 
      (void (**)(void))&_e_surface_interface;
-   es->wl.surface.resource.data = es;
+   es->wl.resource.data = es;
 
    return es;
 }
@@ -115,8 +115,8 @@ e_surface_destroy(E_Surface *es)
    if (!es) return;
 
    /* emit the destroy signal */
-   wl_signal_emit(&es->wl.surface.resource.destroy_signal, 
-                  &es->wl.surface.resource);
+   wl_signal_emit(&es->wl.resource.destroy_signal, 
+                  &es->wl.resource);
 
    /* if this surface is mapped, unmap it */
    if (es->mapped) e_surface_unmap(es);