summaryrefslogtreecommitdiff
path: root/pool-buffer.c
AgeCommit message (Collapse)Author
2025-03-18Define _POSIX_C_SOURCE globallySimon Ser
Other Sway projects have switched to this approach.
2023-03-22Stop pooling background surface buffersManuel Stoeckl
The wl_buffers for the background surface only need to be updated when the output dimensions change. Using the fixed pool of two buffers to cache these buffers does not help, since if a new buffer is needed, it will have a different size than whatever buffers were cached. Furthermore, because the pool has fixed size, it is possible to run out of buffers if configure events arrive faster than pool buffers are marked not busy, which can lead to protocol errors when the background surface is committed after acknowledging a new size, but without attaching a buffer that matches that size.
2022-11-24Use shm_open instead of mkstempManuel Stoeckl
shm_open is more reliable because it does not require a writeable filesystem folder, unlike mkstemp.
2021-02-17pool-buffer: handle zero-sized buffersSimon Ser
mako does something similar.
2019-05-20pool-buffer: add L suffix to POSIX version for consistencyJan Beich
2019-01-23Remove references to pangoIan Fan
2019-01-13Convert swaylock into standalone projectDrew DeVault