cb = malloc(sizeof *cb);
if (cb == NULL) {
- wl_client_post_no_memory(client);
+ wl_resource_post_no_memory(resource);
return;
}
surface = wlsc_surface_create(ec, 0, 0, 0, 0);
if (surface == NULL) {
- wl_client_post_no_memory(client);
+ wl_resource_post_no_memory(resource);
return;
}
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 {
/* 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
if (p)
*p = strdup(type);
if (!p || !*p)
- wl_client_post_no_memory(client);
+ wl_resource_post_no_memory(resource);
}
static void
drag = malloc(sizeof *drag);
if (drag == NULL) {
- wl_client_post_no_memory(client);
+ wl_resource_post_no_memory(resource);
return;
}
if (p)
*p = strdup(type);
if (!p || !*p)
- wl_client_post_no_memory(client);
+ wl_resource_post_no_memory(resource);
}
static void
selection = malloc(sizeof *selection);
if (selection == NULL) {
- wl_client_post_no_memory(client);
+ wl_resource_post_no_memory(resource);
return;
}