Use wl_resource_* error functions
diff --git a/compositor/shell.c b/compositor/shell.c
index f4942a2..cdc9e0a 100644
--- a/compositor/shell.c
+++ b/compositor/shell.c
@@ -112,7 +112,7 @@
 	struct wlsc_surface *es = surface_resource->data;
 
 	if (wlsc_surface_move(es, wd, time) < 0)
-		wl_client_post_no_memory(client);
+		wl_resource_post_no_memory(resource);
 }
 
 struct wlsc_resize_grab {
@@ -256,7 +256,7 @@
 	/* FIXME: Reject if fullscreen */
 
 	if (wlsc_surface_resize(es, wd, time, edges, resource) < 0)
-		wl_client_post_no_memory(client);
+		wl_resource_post_no_memory(resource);
 }
 
 static void
@@ -452,7 +452,7 @@
 	if (p)
 		*p = strdup(type);
 	if (!p || !*p)
-		wl_client_post_no_memory(client);
+		wl_resource_post_no_memory(resource);
 }
 
 static void
@@ -568,7 +568,7 @@
 
 	drag = malloc(sizeof *drag);
 	if (drag == NULL) {
-		wl_client_post_no_memory(client);
+		wl_resource_post_no_memory(resource);
 		return;
 	}
 
@@ -655,7 +655,7 @@
 	if (p)
 		*p = strdup(type);
 	if (!p || !*p)
-		wl_client_post_no_memory(client);
+		wl_resource_post_no_memory(resource);
 }
 
 static void
@@ -736,7 +736,7 @@
 
 	selection = malloc(sizeof *selection);
 	if (selection == NULL) {
-		wl_client_post_no_memory(client);
+		wl_resource_post_no_memory(resource);
 		return;
 	}