diff options
author | Lu YaNing <luyaning@uniontech.com> | 2023-10-11 19:47:32 +0800 |
---|---|---|
committer | Lu YaNing <luyaning@uniontech.com> | 2023-10-18 08:27:51 +0800 |
commit | 393e7673782571de46d3ecef2e8e49ebe2a67cfb (patch) | |
tree | b2f7b880e50d689001c90526030d139f03a6d1f5 /src/client/qwaylandinputdevice_p.h | |
parent | 0740726c9bed2c09a874d3974b9852cdb6d91b37 (diff) |
client: Provide seatname for multi-seat
In a multi-seat configuration the seat name can be used by clients
to help identify which physical devices the seat represents.
Change-Id: Id704ad289fe861c2170380f1575d298e8db03964
Reviewed-by: David Edmundson <davidedmundson@kde.org>
Diffstat (limited to 'src/client/qwaylandinputdevice_p.h')
-rw-r--r-- | src/client/qwaylandinputdevice_p.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/client/qwaylandinputdevice_p.h b/src/client/qwaylandinputdevice_p.h index ddd23ad98..4051cf898 100644 --- a/src/client/qwaylandinputdevice_p.h +++ b/src/client/qwaylandinputdevice_p.h @@ -84,6 +84,7 @@ public: ~QWaylandInputDevice() override; uint32_t capabilities() const { return mCaps; } + QString seatname() const { return mSeatName; } QWaylandDisplay *display() const { return mQDisplay; } struct ::wl_seat *wl_seat() { return QtWayland::wl_seat::object(); } @@ -143,6 +144,7 @@ protected: struct wl_display *mDisplay = nullptr; uint32_t mCaps = 0; + QString mSeatName; #if QT_CONFIG(cursor) struct CursorState { @@ -179,6 +181,7 @@ protected: uint32_t mSerial = 0; void seat_capabilities(uint32_t caps) override; + void seat_name(const QString &name) override; void handleTouchPoint(int id, QEventPoint::State state, const QPointF &surfacePosition = QPoint()); QPointingDevice *mTouchDevice = nullptr; |