diff options
author | Mike Gorse <mgorse@suse.com> | 2021-01-11 13:32:06 -0600 |
---|---|---|
committer | Mike Gorse <mgorse@suse.com> | 2021-01-11 13:32:06 -0600 |
commit | 7bd1ad706c92a9342e5078238ce4380e544aa967 (patch) | |
tree | f09ab765bb97dbcdd0cba047254768da7614eb02 /atspi/atspi-types.h | |
parent | befced84236ec782d3a41d8cc06ceb3fdb61ae75 (diff) | |
download | at-spi2-core-7bd1ad706c92a9342e5078238ce4380e544aa967.tar.gz |
Add device API
This is intended to replace the registry-based method for capturing
keystrokes. It is needed because gtk 4 no longer sends key notifications
in a way that atk-bridge can process them. Unlike the original API, key
grabs are separated from key notifications. Clients wishing to consume
keystrokes must proactively register a grab for the given key. Currently,
there is a backend for X11 and an unfinished legacy back end using the old
registry-based method. Hopefully, there will be a mutter/wayland back end in
the future, but we need to define a protocol there first.
Diffstat (limited to 'atspi/atspi-types.h')
-rw-r--r-- | atspi/atspi-types.h | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/atspi/atspi-types.h b/atspi/atspi-types.h index 2631baf7..ab43ca8c 100644 --- a/atspi/atspi-types.h +++ b/atspi/atspi-types.h @@ -78,9 +78,16 @@ struct _AtspiKeyDefinition gint keycode; gint keysym; gchar *keystring; - gint unused; + guint modifiers; }; +/** + * ATSPI_TYPE_KEY_DEFINITION: + * + * The #GType for a boxed type holding a #AtspiKeyDefinition. + */ +#define ATSPI_TYPE_KEY_DEFINITION (atspi_key_definition_get_type ()) + typedef struct _AtspiEvent AtspiEvent; struct _AtspiEvent { |