From 09e0fa5eb827a475d053adfc2c8baead83de06bf Mon Sep 17 00:00:00 2001 From: Vlad Zahorodnii Date: Mon, 19 Dec 2022 16:40:12 +0200 Subject: [PATCH] backends/wayland: Request wl_shm_buffers with RGB32 format --- src/backends/wayland/wayland_qpainter_backend.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/backends/wayland/wayland_qpainter_backend.cpp b/src/backends/wayland/wayland_qpainter_backend.cpp index 6179892e22..3f4b88eb11 100644 --- a/src/backends/wayland/wayland_qpainter_backend.cpp +++ b/src/backends/wayland/wayland_qpainter_backend.cpp @@ -96,7 +96,7 @@ WaylandQPainterBufferSlot *WaylandQPainterPrimaryLayer::acquire() } } - auto buffer = m_pool->getBuffer(nativeSize, nativeSize.width() * 4).toStrongRef(); + auto buffer = m_pool->getBuffer(nativeSize, nativeSize.width() * 4, KWayland::Client::Buffer::Format::RGB32).toStrongRef(); if (!buffer) { qCDebug(KWIN_WAYLAND_BACKEND) << "Did not get a new Buffer from Shm Pool"; return nullptr;