diff options
author | Simon Ser <contact@emersion.fr> | 2022-09-17 14:38:44 +0200 |
---|---|---|
committer | Simon Zeni <simon@bl4ckb0ne.ca> | 2022-11-15 16:30:00 +0000 |
commit | 0ae3c7b1a2d4da0c32092782ff19a1662151d874 (patch) | |
tree | 0236d59660434b81332a508478d8f04b519b0825 /tinywl/LICENSE | |
parent | 6e88eeadebe5bed0210158124a3c498a8f8a47cb (diff) |
Introduce wlr_shm
This is a re-implementation of wl_shm. The motivations for using
this over the one shipped in libwayland are:
- Properly handle SIGBUS when accessing a wl_buffer's underlying
data after the wl_buffer protocol object has been destroyed.
With the current code, we just crash if the client does that
and then shrinks the backing file.
- No need to fight the wl_shm_buffer API anymore. This was awkward
because we weren't notified when clients created a wl_shm buffer,
and this doesn't play well with our wlr_buffer abstraction.
- Access to the underlying FD. This makes it possible to forward
the wl_shm buffer to a parent compositor with the Wayland/X11
backends.
- Better stride checks. We can use our format table to ensure that
the stride is consistent with the bpp and width.
Diffstat (limited to 'tinywl/LICENSE')
0 files changed, 0 insertions, 0 deletions