From c0d42b05b450aa255a6b2c88fb61b70848f924e6 Mon Sep 17 00:00:00 2001 From: Morten Johan Sorvig Date: Thu, 27 Sep 2012 14:03:31 +0200 Subject: Compile after QWindowSystemInterface API changes. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: I71024a4f36d4952c70b3dc3caa2156e2e7c9b837 Reviewed-by: Jørgen Lind Reviewed-by: Samuel Rødal --- src/plugins/platforms/wayland/qwaylandwindow.cpp | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'src/plugins/platforms/wayland/qwaylandwindow.cpp') diff --git a/src/plugins/platforms/wayland/qwaylandwindow.cpp b/src/plugins/platforms/wayland/qwaylandwindow.cpp index 05781ff54..7fae0a44b 100644 --- a/src/plugins/platforms/wayland/qwaylandwindow.cpp +++ b/src/plugins/platforms/wayland/qwaylandwindow.cpp @@ -158,13 +158,16 @@ void QWaylandWindow::setVisible(bool visible) wl_surface_attach(mSurface, mBuffer->buffer(), 0, 0); if (!mSentInitialResize) { - QWindowSystemInterface::handleSynchronousGeometryChange(window(), geometry()); + QWindowSystemInterface::handleGeometryChange(window(), geometry()); + QWindowSystemInterface::flushWindowSystemEvents(); mSentInitialResize = true; } - QWindowSystemInterface::handleSynchronousExposeEvent(window(), QRect(QPoint(), geometry().size())); + QWindowSystemInterface::handleExposeEvent(window(), QRect(QPoint(), geometry().size())); + QWindowSystemInterface::flushWindowSystemEvents(); } else { - QWindowSystemInterface::handleSynchronousExposeEvent(window(), QRect(QPoint(), geometry().size())); + QWindowSystemInterface::handleExposeEvent(window(), QRect(QPoint(), geometry().size())); + QWindowSystemInterface::flushWindowSystemEvents(); wl_surface_attach(mSurface, 0,0,0); damage(QRect(QPoint(0,0),geometry().size())); } -- cgit v1.2.3