summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMartin Zielinski <martin.zielinski@nokia.com>2011-06-27 08:41:39 +0200
committerQt by Nokia <qt-info@nokia.com>2011-06-27 12:22:24 +0200
commit3d01a5d41b582cfdc59fa0a1b4ada52b7a3ab3d8 (patch)
tree726e5292417623ca2604aabd3df51655cce22f2b
parentc5e1b5c1a817000b4d9066cb3c53ac9721c7ba18 (diff)
Removed damaging of waylandsurface after creation
The damaging of the surface at this time causes graphical corruption in the compositor, as the surface does not contain any rendered output yet. Change-Id: I51392a68a7531db9901137b9861cb0291e16ff12 Reviewed-on: http://codereview.qt.nokia.com/743 Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: mae Reviewed-by: Lasse Holmstedt
-rw-r--r--src/plugins/platforms/wayland/qwaylandwindow.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/plugins/platforms/wayland/qwaylandwindow.cpp b/src/plugins/platforms/wayland/qwaylandwindow.cpp
index e79a712..ef2047e 100644
--- a/src/plugins/platforms/wayland/qwaylandwindow.cpp
+++ b/src/plugins/platforms/wayland/qwaylandwindow.cpp
@@ -144,8 +144,8 @@ void QWaylandWindow::newSurfaceCreated()
{
if (mBuffer) {
wl_surface_attach(mSurface,mBuffer->buffer(),0,0);
- wl_surface_damage(mSurface,
- 0,0,mBuffer->size().width(),mBuffer->size().height());
+ // do not damage the surface here, as this leads to graphical corruptions in the compositor until
+ // the first frame has been rendered
}
}