From: Laszlo Agocs Date: Mon, 30 Jan 2012 14:16:22 +0000 (+0200) Subject: Revert "Do not attach null buffer." X-Git-Tag: qt-v5.0.0-alpha1~53 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=af9010004a410de60ca44005b261361aff004395;p=profile%2Fivi%2Fqtwayland.git Revert "Do not attach null buffer." 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 Reviewed-by: Jørgen Lind --- diff --git a/src/plugins/platforms/wayland/qwaylandwindow.cpp b/src/plugins/platforms/wayland/qwaylandwindow.cpp index bbb805a..97aed6d 100644 --- a/src/plugins/platforms/wayland/qwaylandwindow.cpp +++ b/src/plugins/platforms/wayland/qwaylandwindow.cpp @@ -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); } }