summaryrefslogtreecommitdiffstats
path: root/src/compositor/compositor_api/qwaylandseat.h
diff options
context:
space:
mode:
authorEskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@qt.io>2024-01-19 10:52:37 +0100
committerEskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@qt.io>2024-01-19 12:20:37 +0100
commit7b06ee44eab57000c597f9154c802ad06078c281 (patch)
tree9fcb271ab62772d00d961287bb5304a160a05cca /src/compositor/compositor_api/qwaylandseat.h
parent615fffcfaa13da7f5e819d0b39315c77e6ab1817 (diff)
Fix bool parameter trap in sendUnicodeKeyEvent()
Match this to the other events in the class instead of sendKeyEvent(), which stands out as being a bit awkward. Pick-to: 6.7 Change-Id: I07d5a57717bc5f7400f577246652eac6a86fe469 Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io> Reviewed-by: Inho Lee <inho.lee@qt.io>
Diffstat (limited to 'src/compositor/compositor_api/qwaylandseat.h')
-rw-r--r--src/compositor/compositor_api/qwaylandseat.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/compositor/compositor_api/qwaylandseat.h b/src/compositor/compositor_api/qwaylandseat.h
index 6522a8d5b..dd67e83ae 100644
--- a/src/compositor/compositor_api/qwaylandseat.h
+++ b/src/compositor/compositor_api/qwaylandseat.h
@@ -70,7 +70,9 @@ public:
void sendFullKeyEvent(QKeyEvent *event);
Q_INVOKABLE void sendKeyEvent(int qtKey, bool pressed);
- Q_REVISION(6, 7) Q_INVOKABLE void sendUnicodeKeyEvent(uint unicode, bool pressed);
+
+ Q_REVISION(6, 7) Q_INVOKABLE void sendUnicodeKeyPressEvent(uint unicode);
+ Q_REVISION(6, 7) Q_INVOKABLE void sendUnicodeKeyReleaseEvent(uint unicode);
uint sendTouchPointEvent(QWaylandSurface *surface, int id, const QPointF &point, Qt::TouchPointState state);
Q_INVOKABLE uint sendTouchPointPressed(QWaylandSurface *surface, int id, const QPointF &position);
@@ -115,6 +117,8 @@ Q_SIGNALS:
void cursorSurfaceRequested(QWaylandSurface *surface, int hotspotX, int hotspotY, QWaylandClient *client);
private:
+ void sendUnicodeKeyEvent(uint unicode, QEvent::Type type);
+
void handleMouseFocusDestroyed();
};