backends/wayland: Request wl_shm_buffers with RGB32 format

This commit is contained in:
Vlad Zahorodnii 2022-12-19 16:40:12 +02:00
parent fc36affdee
commit 09e0fa5eb8

View file

@ -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;