summaryrefslogtreecommitdiff
path: root/pool-buffer.c
diff options
context:
space:
mode:
authorManuel Stoeckl <code@mstoeckl.com>2022-12-31 21:05:09 -0500
committerSimon Ser <contact@emersion.fr>2024-10-20 17:08:34 +0200
commitd7ec784e5d69af9d9addf5ef95df5c40af3df478 (patch)
tree0550e3392b230f9a3301047d5f0c85d0217dc962 /pool-buffer.c
parent9c5a7a3181fee854fbf3a29c2133d81f05c9205e (diff)
downloadswaybg-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--pool-buffer.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/pool-buffer.c b/pool-buffer.c
index 9872ec5..4b7b63b 100644
--- a/pool-buffer.c
+++ b/pool-buffer.c
@@ -59,7 +59,7 @@ bool create_buffer(struct pool_buffer *buf, struct wl_shm *shm,
buf->size = size;
buf->data = data;
buf->surface = cairo_image_surface_create_for_data(data,
- CAIRO_FORMAT_ARGB32, width, height, stride);
+ CAIRO_FORMAT_RGB24, width, height, stride);
buf->cairo = cairo_create(buf->surface);
return true;
}