diff options
author | Laszlo Agocs <laszlo.agocs@theqtcompany.com> | 2015-03-06 10:36:43 +0100 |
---|---|---|
committer | Laszlo Agocs <laszlo.agocs@theqtcompany.com> | 2015-03-14 02:14:00 +0000 |
commit | 048918d4bd73886e1a8999a06b7af2cd2ddbe5f2 (patch) | |
tree | b41dc86f2f6fa3ff3fcc83361de272271835f5d4 /src/platformsupport/eglconvenience/qeglplatformscreen_p.h | |
parent | f5edf2b6fb20722bb63c8855793bc2552721748c (diff) |
eglfs: Generate enter and leave events
In addition the logic in QGuiApplication that picks the target window for input
events with a null window has to be enhanced to be compatible with how real windowing
systems work: mouse events following a press are delivered to the same window until the
release, even if the cursor has left the original target window.
Task-number: QTBUG-44814
Change-Id: I3fea84ac77a5ccebeae5def64f92d8d2e03d13ff
Reviewed-by: Jørgen Lind <jorgen.lind@theqtcompany.com>
Diffstat (limited to 'src/platformsupport/eglconvenience/qeglplatformscreen_p.h')
-rw-r--r-- | src/platformsupport/eglconvenience/qeglplatformscreen_p.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/platformsupport/eglconvenience/qeglplatformscreen_p.h b/src/platformsupport/eglconvenience/qeglplatformscreen_p.h index 33528e61a7..98a108c4b7 100644 --- a/src/platformsupport/eglconvenience/qeglplatformscreen_p.h +++ b/src/platformsupport/eglconvenience/qeglplatformscreen_p.h @@ -46,6 +46,7 @@ // #include <QtCore/QList> +#include <QtCore/QPoint> #include <QtCore/qtextstream.h> #include <qpa/qplatformscreen.h> #include <EGL/egl.h> @@ -53,6 +54,7 @@ QT_BEGIN_NAMESPACE class QOpenGLContext; +class QWindow; class QEGLPlatformWindow; class QEGLPlatformScreen : public QPlatformScreen @@ -63,8 +65,11 @@ public: EGLDisplay display() const { return m_dpy; } + void handleCursorMove(const QPoint &pos); + private: EGLDisplay m_dpy; + QWindow *m_pointerWindow; }; QT_END_NAMESPACE |