scene/surfaceitem_x11: improve size mismatch warning

This commit is contained in:
Xaver Hugl 2023-01-31 13:00:15 +01:00 committed by Vlad Zahorodnii
parent c0fa51c784
commit 3c059d3a24

View file

@ -242,8 +242,8 @@ void SurfacePixmapX11::create()
}
const QRectF bufferGeometry = window->bufferGeometry();
if (windowGeometry.size() != bufferGeometry.size()) {
qCDebug(KWIN_CORE, "Failed to create window pixmap for window 0x%x (mismatched geometry)",
window->window());
qCDebug(KWIN_CORE, "Failed to create window pixmap for window 0x%x: window size (%fx%f) != buffer size (%fx%f)", window->window(),
windowGeometry.size().width(), windowGeometry.size().height(), bufferGeometry.width(), bufferGeometry.height());
xcb_free_pixmap(connection, pixmap);
return;
}