summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGiulio Camuffo <giuliocamuffo@gmail.com>2013-03-27 00:08:31 +0100
committerAndy Nichols <andy.nichols@digia.com>2013-04-03 11:46:47 +0200
commitaf7f34666e501c88e354341d94f1b663c0489673 (patch)
tree2763406d830842c4a55c5a8dd1b5fcc1c00ba3b2
parent7a9fe97eea5f643da27344b24ecd00927c5eda80 (diff)
downloadqtwayland-af7f34666e501c88e354341d94f1b663c0489673.tar.gz
Attach always the front buffer before committing it.
The attach semantics changed in Wayland master. Change-Id: I79efa5e3b2d048604cadb18543101a869ccb6835 Reviewed-by: Jørgen Lind <jorgen.lind@digia.com> Reviewed-by: Pier Luigi Fiorini <pierluigi.fiorini@gmail.com> Reviewed-by: Andy Nichols <andy.nichols@digia.com>
-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 decf34a7..b444d2b2 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