Changeset View
Changeset View
Standalone View
Standalone View
plugins/platforms/x11/standalone/x11_decoration_renderer.cpp
Show First 20 Lines • Show All 82 Lines • ▼ Show 20 Line(s) | 67 | { | |||
---|---|---|---|---|---|
83 | 83 | | |||
84 | const QRect geometry = scheduled.boundingRect(); | 84 | const QRect geometry = scheduled.boundingRect(); | ||
85 | left = left.intersected(geometry); | 85 | left = left.intersected(geometry); | ||
86 | top = top.intersected(geometry); | 86 | top = top.intersected(geometry); | ||
87 | right = right.intersected(geometry); | 87 | right = right.intersected(geometry); | ||
88 | bottom = bottom.intersected(geometry); | 88 | bottom = bottom.intersected(geometry); | ||
89 | 89 | | |||
90 | auto renderPart = [this, c](const QRect &geo) { | 90 | auto renderPart = [this, c](const QRect &geo) { | ||
91 | if (geo.isNull()) { | 91 | if (!geo.isValid()) { | ||
92 | return; | 92 | return; | ||
93 | } | 93 | } | ||
94 | QImage image = renderToImage(geo); | 94 | QImage image = renderToImage(geo); | ||
95 | xcb_put_image(c, XCB_IMAGE_FORMAT_Z_PIXMAP, client()->client()->frameId(), m_gc, | 95 | xcb_put_image(c, XCB_IMAGE_FORMAT_Z_PIXMAP, client()->client()->frameId(), m_gc, | ||
96 | image.width(), image.height(), geo.x(), geo.y(), 0, client()->client()->depth(), | 96 | image.width(), image.height(), geo.x(), geo.y(), 0, client()->client()->depth(), | ||
97 | image.byteCount(), image.constBits()); | 97 | image.byteCount(), image.constBits()); | ||
98 | }; | 98 | }; | ||
99 | renderPart(left); | 99 | renderPart(left); | ||
Show All 10 Lines |