diff options
| author | Dmitry Kazakov <[email protected]> | 2025-05-28 12:59:25 +0200 |
|---|---|---|
| committer | Dmitry Kazakov <[email protected]> | 2025-09-12 13:59:48 +0200 |
| commit | b5147dca11ea67f72c8292d95f7de7f6853b11fc (patch) | |
| tree | 95460ed390dd2e047681f6e5e46e8fa28cf12398 /src/gui/kernel | |
| parent | 1b4abf645afe3dc137dbdb6e9e27b85db9403cac (diff) | |
Add QWaylandApplication::xkbContext()
It is necessary for the apps that want to manually parse the stream of events
from wl_keyborad.
Change-Id: I8229ae6e43640d0e7b9597f5f7b35cba59db0f64
Reviewed-by: David Edmundson <[email protected]>
Diffstat (limited to 'src/gui/kernel')
| -rw-r--r-- | src/gui/kernel/qguiapplication_platform.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/gui/kernel/qguiapplication_platform.h b/src/gui/kernel/qguiapplication_platform.h index 98e19427ae7..b3e753a9f49 100644 --- a/src/gui/kernel/qguiapplication_platform.h +++ b/src/gui/kernel/qguiapplication_platform.h @@ -30,6 +30,11 @@ struct wl_seat; struct wl_keyboard; struct wl_pointer; struct wl_touch; + +#if QT_CONFIG(xkbcommon) +struct xkb_context; +#endif + #endif #if defined(Q_OS_VISIONOS) || defined(Q_QDOC) @@ -74,6 +79,9 @@ struct Q_GUI_EXPORT QWaylandApplication virtual wl_touch *touch() const = 0; virtual uint lastInputSerial() const = 0; virtual wl_seat *lastInputSeat() const = 0; +#if QT_CONFIG(xkbcommon) + virtual xkb_context *xkbContext() const = 0; +#endif }; #endif |
