Commit Graph

6 Commits

Author SHA1 Message Date
Manuel Stoeckl
1d3e62c67f Stop pooling background surface buffers
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.
2023-03-22 10:56:42 +01:00
Manuel Stoeckl
cbdafb031a Use shm_open instead of mkstemp
shm_open is more reliable because it does not require
a writeable filesystem folder, unlike mkstemp.
2022-11-24 23:56:10 +01:00
Simon Ser
691415bf95 pool-buffer: handle zero-sized buffers
mako does something similar.
2021-02-17 16:50:38 +01:00
Jan Beich
96e281fdb2 pool-buffer: add L suffix to POSIX version for consistency 2019-05-20 19:51:48 +03:00
Ian Fan
b87e2a4916 Remove references to pango 2019-01-23 12:20:24 +00:00
Drew DeVault
b90637e2a6 Convert swaylock into standalone project 2019-01-13 21:16:47 -05:00