From fc36affdeebc62f32b619b57b8d4c316ce7e6a33 Mon Sep 17 00:00:00 2001 From: Vlad Zahorodnii Date: Mon, 19 Dec 2022 14:47:45 +0200 Subject: [PATCH] backends/wayland: Specify correct format for remapped primary layer buffers We don't need the alpha channel and WaylandQPainterBufferSlot specifies RGB32 format in its constructor. --- 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 cd7868b829..6179892e22 100644 --- a/src/backends/wayland/wayland_qpainter_backend.cpp +++ b/src/backends/wayland/wayland_qpainter_backend.cpp @@ -54,7 +54,7 @@ void WaylandQPainterPrimaryLayer::remapBuffer() const QSize nativeSize(m_waylandOutput->geometry().size() * m_waylandOutput->scale()); for (const auto &slot : m_slots) { - slot->image = QImage(slot->buffer->address(), nativeSize.width(), nativeSize.height(), QImage::Format_ARGB32); + slot->image = QImage(slot->buffer->address(), nativeSize.width(), nativeSize.height(), QImage::Format_RGB32); } }