[decoration] Use client's depth in X11Renderer for put_image

If the Client uses ARGB the depth is not 24, thus we should use
the actual depth from the Client.

BUG: 342757
This commit is contained in:
Martin Gräßlin 2015-01-12 11:43:29 +01:00
parent 6f0e4b2d5a
commit 9fb27bc0ba

View file

@ -140,7 +140,8 @@ void X11Renderer::render()
}
QImage image = renderToImage(geo);
xcb_put_image(c, XCB_IMAGE_FORMAT_Z_PIXMAP, client()->client()->frameId(), m_gc,
image.width(), image.height(), geo.x(), geo.y(), 0, 24, image.byteCount(), image.constBits());
image.width(), image.height(), geo.x(), geo.y(), 0, client()->client()->depth(),
image.byteCount(), image.constBits());
};
renderPart(left);
renderPart(top);