[gnome-settings-daemon] common: Handle "cursor" tablet devices explicitly in GsdDeviceMapper
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-settings-daemon] common: Handle "cursor" tablet devices explicitly in GsdDeviceMapper
- Date: Wed, 2 Jul 2014 13:45:39 +0000 (UTC)
commit 5a965d4597eaa32be390d2630ca02b4018485143
Author: Carlos Garnacho <carlosg gnome org>
Date: Tue Jun 24 16:25:00 2014 +0200
common: Handle "cursor" tablet devices explicitly in GsdDeviceMapper
Just set the GSD_INPUT_IS_CURSOR flag on those, so the mapper is aware
if there are several of those around for mapping purposes.
https://bugzilla.gnome.org/show_bug.cgi?id=732111
plugins/common/gsd-device-mapper.c | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/plugins/common/gsd-device-mapper.c b/plugins/common/gsd-device-mapper.c
index 4808c6c..3b1cab4 100644
--- a/plugins/common/gsd-device-mapper.c
+++ b/plugins/common/gsd-device-mapper.c
@@ -46,7 +46,8 @@ typedef enum {
GSD_INPUT_IS_TOUCH = 1 << 2, /* touch device, either touchscreen or tablet */
GSD_INPUT_IS_PEN = 1 << 3, /* pen device, either touchscreen or tablet */
GSD_INPUT_IS_ERASER = 1 << 4, /* eraser device, either touchscreen or tablet */
- GSD_INPUT_IS_PAD = 1 << 5 /* pad device, most usually in tablets */
+ GSD_INPUT_IS_PAD = 1 << 5, /* pad device, most usually in tablets */
+ GSD_INPUT_IS_CURSOR = 1 << 6 /* pointer-like device in tablets */
} GsdInputCapabilityFlags;
typedef enum {
@@ -862,6 +863,8 @@ input_info_update_capabilities_from_tool_type (GsdInputInfo *info)
info->capabilities |= GSD_INPUT_IS_ERASER;
else if (g_str_equal (tool_type, "PAD"))
info->capabilities |= GSD_INPUT_IS_PAD;
+ else if (g_str_equal (tool_type, "CURSOR"))
+ info->capabilities |= GSD_INPUT_IS_CURSOR;
else
return FALSE;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]