Revert "Do not attach null buffer."
authorLaszlo Agocs <laszlo.p.agocs@nokia.com>
Mon, 30 Jan 2012 14:16:22 +0000 (16:16 +0200)
committerJørgen Lind <jorgen.lind@nokia.com>
Mon, 30 Jan 2012 14:18:38 +0000 (15:18 +0100)
This reverts commit 42ed12656016a96b966b7b5e52f0b684ad65c227.

Weston has been fixed so attaching null buffer on hide is now a valid
operation.

Change-Id: I0fc6af7f87c97e07075da03ed1b54d2e3c1d45fd
Sanity-Review: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Jørgen Lind <jorgen.lind@nokia.com>
src/plugins/platforms/wayland/qwaylandwindow.cpp

index bbb805a..97aed6d 100644 (file)
@@ -125,6 +125,8 @@ void QWaylandWindow::setVisible(bool visible)
             wl_surface_attach(mSurface, mBuffer->buffer(),0,0);
             QWindowSystemInterface::handleSynchronousExposeEvent(window(), QRect(QPoint(), geometry().size()));
         }
+    } else {
+        wl_surface_attach(mSurface, 0,0,0);
     }
 }