diff options
author | Manuel Stoeckl <code@mstoeckl.com> | 2022-12-31 21:05:09 -0500 |
---|---|---|
committer | Simon Ser <contact@emersion.fr> | 2024-10-20 17:08:34 +0200 |
commit | d7ec784e5d69af9d9addf5ef95df5c40af3df478 (patch) | |
tree | 0550e3392b230f9a3301047d5f0c85d0217dc962 /main.c | |
parent | 9c5a7a3181fee854fbf3a29c2133d81f05c9205e (diff) | |
download | swaybg-d7ec784e5d69af9d9addf5ef95df5c40af3df478.tar.gz swaybg-d7ec784e5d69af9d9addf5ef95df5c40af3df478.tar.bz2 |
Only submit opaque (XRGB8888) buffers
This lets the compositor avoid needing to clear and blend the
pixels behind the background surface made by swaybg.
Diffstat (limited to '')
-rw-r--r-- | main.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -120,7 +120,7 @@ static struct wl_buffer *draw_buffer(const struct swaybg_output *output, struct pool_buffer buffer; if (!create_buffer(&buffer, output->state->shm, - buffer_width, buffer_height, WL_SHM_FORMAT_ARGB8888)) { + buffer_width, buffer_height, WL_SHM_FORMAT_XRGB8888)) { return NULL; } |