Add convenience functions for posting display events

This commit is contained in:
Kristian Høgsberg 2010-09-02 20:55:16 -04:00
parent f66d0f4e14
commit 13b8ae4986
4 changed files with 28 additions and 22 deletions

4
drm.c
View file

@ -93,9 +93,7 @@ drm_create_buffer(struct wl_client *client, struct wl_drm *drm_base,
buffer = malloc(sizeof *buffer);
if (buffer == NULL) {
wl_client_post_event(client,
(struct wl_object *) compositor->wl_display,
WL_DISPLAY_NO_MEMORY, 0);
wl_client_post_no_memory(client);
return;
}