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>
This commit is contained in:
Laszlo Agocs 2015-10-21 16:12:27 +02:00
parent ceec35a6de
commit d0cbd1e0b8
2 changed files with 2 additions and 2 deletions

View File

@ -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)
{

View File

@ -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;