summaryrefslogtreecommitdiffstats
path: root/src/client/qwaylandinputdevice_p.h
diff options
context:
space:
mode:
authorTasuku Suzuki <tasuku.suzuki@qt.io>2017-01-13 20:19:17 +0900
committerTasuku Suzuki <tasuku.suzuki@qt.io>2017-01-13 14:25:20 +0000
commitcab7cb98d5b9530a3c265cc2436dd7d157e43f66 (patch)
treef17e25ec2bf58922fa83afc4e35c282fa0724a0e /src/client/qwaylandinputdevice_p.h
parent479a487066484809ebdf3c2c16b3c87c72870483 (diff)
Fix build without feature.cursor
Change-Id: If244e7ac58133ae6fbefacfa243d47fa210140be Reviewed-by: Lars Knoll <lars.knoll@qt.io>
Diffstat (limited to 'src/client/qwaylandinputdevice_p.h')
-rw-r--r--src/client/qwaylandinputdevice_p.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/client/qwaylandinputdevice_p.h b/src/client/qwaylandinputdevice_p.h
index 6d458e35d..f2bbd0dc0 100644
--- a/src/client/qwaylandinputdevice_p.h
+++ b/src/client/qwaylandinputdevice_p.h
@@ -72,7 +72,9 @@
#include <QtCore/QDebug>
+#if QT_CONFIG(cursor)
struct wl_cursor_image;
+#endif
QT_BEGIN_NAMESPACE
@@ -100,10 +102,12 @@ public:
struct ::wl_seat *wl_seat() { return QtWayland::wl_seat::object(); }
+#if QT_CONFIG(cursor)
void setCursor(const QCursor &cursor, QWaylandScreen *screen);
void setCursor(struct wl_buffer *buffer, struct ::wl_cursor_image *image);
void setCursor(struct wl_buffer *buffer, const QPoint &hotSpot, const QSize &size);
void setCursor(const QSharedPointer<QWaylandBuffer> &buffer, const QPoint &hotSpot);
+#endif
void handleWindowDestroyed(QWaylandWindow *window);
void handleEndDrag();
@@ -247,12 +251,16 @@ public:
QWaylandInputDevice *mParent;
QWaylandWindow *mFocus;
uint32_t mEnterSerial;
+#if QT_CONFIG(cursor)
uint32_t mCursorSerial;
+#endif
QPointF mSurfacePos;
QPointF mGlobalPos;
Qt::MouseButtons mButtons;
+#if QT_CONFIG(cursor)
wl_buffer *mCursorBuffer;
Qt::CursorShape mCursorShape;
+#endif
};
class Q_WAYLAND_CLIENT_EXPORT QWaylandInputDevice::Touch : public QtWayland::wl_touch