diff options
author | Laszlo Agocs <laszlo.p.agocs@nokia.com> | 2012-06-18 16:53:07 +0300 |
---|---|---|
committer | Laszlo Agocs <laszlo.p.agocs@nokia.com> | 2012-06-19 07:43:35 +0200 |
commit | 46ff754410d4747c1a1b72f9e9d519645aebbe6a (patch) | |
tree | 4dae8bf812b9370a6688ae8b2a89f50ecee40929 /src/plugins/platforms/wayland/qwaylandcursor.h | |
parent | deecb4b8544bfc17bbc42f22709969ed70448bb4 (diff) |
Follow protocol changes in pointer attach
Change-Id: I68b480b7feea814f79997c6a39e4567c3a990f47
Reviewed-by: Samuel Rødal <samuel.rodal@nokia.com>
Diffstat (limited to 'src/plugins/platforms/wayland/qwaylandcursor.h')
-rw-r--r-- | src/plugins/platforms/wayland/qwaylandcursor.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/plugins/platforms/wayland/qwaylandcursor.h b/src/plugins/platforms/wayland/qwaylandcursor.h index ef37050d9..1c9855876 100644 --- a/src/plugins/platforms/wayland/qwaylandcursor.h +++ b/src/plugins/platforms/wayland/qwaylandcursor.h @@ -47,11 +47,13 @@ class QWaylandShmBuffer; class QWaylandDisplay; class QWaylandScreen; +struct wl_surface; class QWaylandCursor : public QPlatformCursor { public: QWaylandCursor(QWaylandScreen *screen); + ~QWaylandCursor(); void changeCursor(QCursor *cursor, QWindow *window); void pointerEvent(const QMouseEvent &event); @@ -62,8 +64,11 @@ public: QWaylandShmBuffer *mBuffer; QWaylandDisplay *mDisplay; + wl_surface *mSurface; private: + void ensureSurface(const QSize &size); + QPoint mLastPos; }; |