From 9fb27bc0baee8e8fc2fe55b63adfdc575074a2cf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Gr=C3=A4=C3=9Flin?= Date: Mon, 12 Jan 2015 11:43:29 +0100 Subject: [PATCH] [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 --- decorations/decorationrenderer.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/decorations/decorationrenderer.cpp b/decorations/decorationrenderer.cpp index d5e9f744a1..5c281e634d 100644 --- a/decorations/decorationrenderer.cpp +++ b/decorations/decorationrenderer.cpp @@ -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);