summaryrefslogtreecommitdiffstats
path: root/src/client/qwaylandscreen.cpp
diff options
context:
space:
mode:
authorGiulio Camuffo <giulio.camuffo@jollamobile.com>2015-04-23 19:32:28 +0300
committerGiulio Camuffo <giulio.camuffo@jollamobile.com>2015-05-28 07:48:22 +0000
commit817c7e0c365e9b0e2b9d4f3ed06dd192a57bd6af (patch)
tree5b84cf28217b9ab11ebee07fb73a39e71f77b3aa /src/client/qwaylandscreen.cpp
parentf87e9e28aaa37888baa3c530d74c61f8c5826ef1 (diff)
Fix crash when the wl_shm global comes after a wl_output one
Task-number: QTBUG-44503 Change-Id: I6932df57bb4560b6dceb72a5cb7c536cd090e92a Reviewed-by: Martin Gräßlin <mgraesslin@kde.org> Reviewed-by: Laszlo Agocs <laszlo.agocs@theqtcompany.com>
Diffstat (limited to 'src/client/qwaylandscreen.cpp')
-rw-r--r--src/client/qwaylandscreen.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/client/qwaylandscreen.cpp b/src/client/qwaylandscreen.cpp
index acd125c62..8a01e366e 100644
--- a/src/client/qwaylandscreen.cpp
+++ b/src/client/qwaylandscreen.cpp
@@ -60,7 +60,7 @@ QWaylandScreen::QWaylandScreen(QWaylandDisplay *waylandDisplay, int version, uin
, mFormat(QImage::Format_ARGB32_Premultiplied)
, mOutputName(QStringLiteral("Screen%1").arg(id))
, m_orientation(Qt::PrimaryOrientation)
- , mWaylandCursor(new QWaylandCursor(this))
+ , mWaylandCursor(0)
{
// handle case of output extension global being sent after outputs
createExtendedOutput();
@@ -71,6 +71,11 @@ QWaylandScreen::~QWaylandScreen()
delete mWaylandCursor;
}
+void QWaylandScreen::init()
+{
+ mWaylandCursor = new QWaylandCursor(this);
+}
+
QWaylandDisplay * QWaylandScreen::display() const
{
return mWaylandDisplay;