summaryrefslogtreecommitdiff
path: root/main.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 /main.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--main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/main.c b/main.c
index 0f5e7ad..181adb4 100644
--- a/main.c
+++ b/main.c
@@ -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;
}