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: Matthias Ettrich
Reviewed-by: Lasse Holmstedt
This commit is contained in:
Martin Zielinski 2011-06-27 08:41:39 +02:00 committed by Qt by Nokia
parent bb6be57b38
commit 8fb4beb2a1

View File

@ -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
}
}