[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:
parent
6f0e4b2d5a
commit
9fb27bc0ba
1 changed files with 2 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue