diff options
author | Robert Griebl <robert.griebl@pelagicore.com> | 2019-06-07 15:36:38 +0200 |
---|---|---|
committer | Robert Griebl <robert.griebl@pelagicore.com> | 2019-08-12 18:54:13 +0200 |
commit | ca9be5cab503d85831653d6c4bc9c59bd0f6ad57 (patch) | |
tree | 625ae236bfb47c9e596aae2a4bf4609630ea11b6 /src/compositor | |
parent | 6f44ad0f42bd93e60979501a5740dab92661b29c (diff) | |
download | qtwayland-ca9be5cab503d85831653d6c4bc9c59bd0f6ad57.tar.gz |
Fix crash when closing windows via XDG sendClose
This crash only occurs on a few machines running autotests for the
application-manager, but it's happening consistently on the affected
machines.
Change-Id: I4533379580b7c1f62e4f45bf223d73aac3e8d5b7
Reviewed-by: Paul Olav Tvete <paul.tvete@qt.io>
Diffstat (limited to 'src/compositor')
-rw-r--r-- | src/compositor/compositor_api/qwaylandquickitem.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/compositor/compositor_api/qwaylandquickitem.cpp b/src/compositor/compositor_api/qwaylandquickitem.cpp index 7b0d5c5d..62a89057 100644 --- a/src/compositor/compositor_api/qwaylandquickitem.cpp +++ b/src/compositor/compositor_api/qwaylandquickitem.cpp @@ -1317,7 +1317,7 @@ QSGNode *QWaylandQuickItem::updatePaintNode(QSGNode *oldNode, UpdatePaintNodeDat if (d->view->isBufferLocked() && !bufferHasContent && d->paintEnabled) return oldNode; - if (!bufferHasContent || !d->paintEnabled) { + if (!bufferHasContent || !d->paintEnabled || !surface()) { delete oldNode; return nullptr; } |