summaryrefslogtreecommitdiffstats
path: root/src/plugins/platforms/eglfs
diff options
context:
space:
mode:
authorLaszlo Agocs <laszlo.agocs@theqtcompany.com>2015-10-21 16:12:27 +0200
committerLaszlo Agocs <laszlo.agocs@theqtcompany.com>2015-10-22 09:21:54 +0000
commitd0cbd1e0b8f893bfb87f9b6ecd47b71e0a51bf8d (patch)
treec9eb88dce0fefa1e11a26a3efbcbcb10fb860020 /src/plugins/platforms/eglfs
parentceec35a6deb0e14cb2edadab8dbd18cfeff7320f (diff)
eglfs: Avoid sending enter-leave events with an invalid leave ptr
Task-number: QTBUG-48890 Change-Id: Iad82f285a0c982a5fafd276459b8177086d43d1b Reviewed-by: Andy Nichols <andy.nichols@theqtcompany.com>
Diffstat (limited to 'src/plugins/platforms/eglfs')
-rw-r--r--src/plugins/platforms/eglfs/qeglfsscreen.cpp1
-rw-r--r--src/plugins/platforms/eglfs/qeglfsscreen.h3
2 files changed, 2 insertions, 2 deletions
diff --git a/src/plugins/platforms/eglfs/qeglfsscreen.cpp b/src/plugins/platforms/eglfs/qeglfsscreen.cpp
index 22ec424451..6f8d0b88dd 100644
--- a/src/plugins/platforms/eglfs/qeglfsscreen.cpp
+++ b/src/plugins/platforms/eglfs/qeglfsscreen.cpp
@@ -45,7 +45,6 @@ QT_BEGIN_NAMESPACE
QEglFSScreen::QEglFSScreen(EGLDisplay dpy)
: m_dpy(dpy),
- m_pointerWindow(0),
m_surface(EGL_NO_SURFACE),
m_cursor(0)
{
diff --git a/src/plugins/platforms/eglfs/qeglfsscreen.h b/src/plugins/platforms/eglfs/qeglfsscreen.h
index dc291285ad..44e9da4a5a 100644
--- a/src/plugins/platforms/eglfs/qeglfsscreen.h
+++ b/src/plugins/platforms/eglfs/qeglfsscreen.h
@@ -35,6 +35,7 @@
#define QEGLFSSCREEN_H
#include "qeglfsglobal.h"
+#include <QtCore/QPointer>
#include <EGL/egl.h>
QT_BEGIN_NAMESPACE
@@ -73,7 +74,7 @@ private:
void setPrimarySurface(EGLSurface surface);
EGLDisplay m_dpy;
- QWindow *m_pointerWindow;
+ QPointer<QWindow> m_pointerWindow;
EGLSurface m_surface;
QPlatformCursor *m_cursor;