mirror of
https://gitlab.freedesktop.org/wayland/wayland.git
synced 2025-11-02 09:01:39 -05:00
Add convenience functions for posting display events
This commit is contained in:
parent
f66d0f4e14
commit
13b8ae4986
4 changed files with 28 additions and 22 deletions
4
drm.c
4
drm.c
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue