Update wl_desktop for recent wayland changes.
authorChris Michael <devilhorns@comcast.net>
Sat, 8 Jun 2013 09:04:57 +0000 (10:04 +0100)
committerChris Michael <devilhorns@comcast.net>
Sat, 8 Jun 2013 09:04:57 +0000 (10:04 +0100)
Signed-off-by: Chris Michael <devilhorns@comcast.net>
src/modules/wl_desktop/e_mod_main.c

index c0f0913486c4049cf6466429cc0a7915e7783e16..f2ca431a46f1e606edfe29e986763bfa06a35c70 100644 (file)
@@ -170,7 +170,7 @@ _e_desktop_shell_cb_shell_surface_get(struct wl_client *client, struct wl_resour
    /* setup shell surface destroy callback */
    ess->wl.surface_destroy.notify = 
      _e_desktop_shell_shell_surface_cb_destroy_notify;
-   wl_signal_add(&es->wl.surface.resource.destroy_signal, 
+   wl_signal_add(&es->wl.resource.destroy_signal, 
                  &ess->wl.surface_destroy);
 
    /* setup shell surface interface */
@@ -206,7 +206,12 @@ _e_desktop_shell_shell_surface_cb_destroy(struct wl_resource *resource)
    if (!(ess = resource->data)) return;
 
    /* if we have a popup grab, end it */
-   if (ess->popup.grab.pointer) wl_pointer_end_grab(ess->popup.grab.pointer);
+   if (!wl_list_empty(&ess->popup.grabs))
+     {
+        wl_list_remove(&ess->popup.grabs);
+        wl_list_init(&ess->popup.grabs);
+        /* TODO: finish me */
+     }
 
    wl_list_remove(&ess->wl.surface_destroy.link);
    ess->surface->configure = NULL;