summaryrefslogtreecommitdiff
path: root/TODO
diff options
context:
space:
mode:
authorPekka Paalanen <pekka.paalanen@collabora.co.uk>2013-11-29 17:47:09 +0200
committerKristian Høgsberg <krh@bitplanet.net>2013-12-02 16:19:45 -0800
commit3b3e81f42e0bf05e606f40ac0145977766283548 (patch)
treedbbc32feb5fe989b4c5ed077f79097439616ac78 /TODO
parent011b6954031a25de8d9eb39631b6837553bb3cfb (diff)
cursor: handle running out of buffer space
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>
Diffstat (limited to 'TODO')
0 files changed, 0 insertions, 0 deletions