summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/plugins/platforms/wayland_common/qwaylandshmbackingstore.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/platforms/wayland_common/qwaylandshmbackingstore.cpp b/src/plugins/platforms/wayland_common/qwaylandshmbackingstore.cpp
index decf34a77..b444d2b20 100644
--- a/src/plugins/platforms/wayland_common/qwaylandshmbackingstore.cpp
+++ b/src/plugins/platforms/wayland_common/qwaylandshmbackingstore.cpp
@@ -206,9 +206,9 @@ void QWaylandShmBackingStore::flush(QWindow *window, const QRegion &region, cons
bool damageAll = false;
if (waylandWindow()->attached() != mFrontBuffer) {
delete waylandWindow()->attached();
- waylandWindow()->attachOffset(mFrontBuffer);
damageAll = true;
}
+ waylandWindow()->attachOffset(mFrontBuffer);
if (damageAll) {
//need to damage it all, otherwise the attach offset may screw up