[mutter] clutter: Add an accessibility virtual device
- From: Carlos Garnacho <carlosg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [mutter] clutter: Add an accessibility virtual device
- Date: Thu, 6 Jun 2019 11:34:10 +0000 (UTC)
commit 4d21650d6d9aaee263191f7ed019869a9d4152dc
Author: Olivier Fourdan <ofourdan redhat com>
Date: Wed Feb 27 15:57:22 2019 +0100
clutter: Add an accessibility virtual device
For accessibility features, being either keyboard accessibility to
implement mousekeys, or pointer accessibility to implement simulated
secondary click or dwell click, we need to have a virtual device.
Add that virtual device in ClutterInputDevice so it can be used either
for keyboard or pointer accessibility.
https://gitlab.gnome.org/GNOME/mutter/merge_requests/512
clutter/clutter/clutter-device-manager-private.h | 3 +++
clutter/clutter/clutter-input-device.c | 3 +++
2 files changed, 6 insertions(+)
---
diff --git a/clutter/clutter/clutter-device-manager-private.h
b/clutter/clutter/clutter-device-manager-private.h
index 2364fd27c..d08e66ba4 100644
--- a/clutter/clutter/clutter-device-manager-private.h
+++ b/clutter/clutter/clutter-device-manager-private.h
@@ -143,6 +143,9 @@ struct _ClutterInputDevice
guint has_cursor : 1;
guint is_enabled : 1;
+
+ /* Accessiblity */
+ ClutterVirtualInputDevice *accessibility_virtual_device;
};
typedef void (*ClutterEmitInputDeviceEvent) (ClutterEvent *event,
diff --git a/clutter/clutter/clutter-input-device.c b/clutter/clutter/clutter-input-device.c
index be01062cc..c289f81b7 100644
--- a/clutter/clutter/clutter-input-device.c
+++ b/clutter/clutter/clutter-input-device.c
@@ -107,6 +107,9 @@ clutter_input_device_dispose (GObject *gobject)
device->associated = NULL;
}
+ if (device->accessibility_virtual_device)
+ g_clear_object (&device->accessibility_virtual_device);
+
g_clear_pointer (&device->axes, g_array_unref);
g_clear_pointer (&device->keys, g_array_unref);
g_clear_pointer (&device->scroll_info, g_array_unref);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]