mirror of
https://gitlab.freedesktop.org/wayland/wayland.git
synced 2025-10-29 05:40:16 -04:00
If posix_fallocate is available, use it to detect when we are running out of buffer space. Propagate the failure properly through the various functions, stopping loading cursors but keeping the cursors that were already successfully loaded. This may result in an animated cursor not having all of its images, or a cursor theme not having all of its cursors. When that happens, the failure is NOT communicated to the application. Instead, the application will get NULL from wl_cursor_theme_get_cursor() for a cursor that was not loaded successfully. If an animated cursor is missing only some images, the animation is truncated but the cursor is still available. This patch relies on the commit "os: use posix_fallocate in creating sharable buffers" for defining HAVE_POSIX_FALLOCATE. Signed-off-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk> |
||
|---|---|---|
| .. | ||
| convert_font.c | ||
| cursor-data.h | ||
| cursor.pcf | ||
| Makefile.am | ||
| os-compatibility.c | ||
| os-compatibility.h | ||
| wayland-cursor-uninstalled.pc.in | ||
| wayland-cursor.c | ||
| wayland-cursor.h | ||
| wayland-cursor.pc.in | ||
| xcursor.c | ||
| xcursor.h | ||