summaryrefslogtreecommitdiffstats
path: root/src/plugins/platforms/wayland/qwaylandwindow.cpp
diff options
context:
space:
mode:
authorLaszlo Agocs <laszlo.p.agocs@nokia.com>2012-01-28 20:56:28 +0200
committerJørgen Lind <jorgen.lind@nokia.com>2012-01-30 09:58:46 +0100
commit42ed12656016a96b966b7b5e52f0b684ad65c227 (patch)
tree2244958b3b01e631d7abb657f22ef3c3d3126db2 /src/plugins/platforms/wayland/qwaylandwindow.cpp
parentb5bb1c45fd2b478f10278c64b6346423c90a0213 (diff)
Do not attach null buffer.
Apparently Weston does not like this and causes instant crashes when hiding a top-level widget. The QtCompositor-side behavior is dubious too although at least that does not crash. Nevertheless attaching a null buffer seems unnecessary. Change-Id: I1d7fe3e0b05e5d77773b661a71bc37311968eded Sanity-Review: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Jørgen Lind <jorgen.lind@nokia.com>
Diffstat (limited to 'src/plugins/platforms/wayland/qwaylandwindow.cpp')
-rw-r--r--src/plugins/platforms/wayland/qwaylandwindow.cpp2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/plugins/platforms/wayland/qwaylandwindow.cpp b/src/plugins/platforms/wayland/qwaylandwindow.cpp
index 97aed6d7d..bbb805a58 100644
--- a/src/plugins/platforms/wayland/qwaylandwindow.cpp
+++ b/src/plugins/platforms/wayland/qwaylandwindow.cpp
@@ -125,8 +125,6 @@ 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);
}
}