aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Michael <cp.michael@samsung.com>2017-02-02 11:00:42 -0500
committerChris Michael <cp.michael@samsung.com>2017-02-07 09:38:33 -0500
commitdc9ecac35c08289df29c499be8d0bcb65ee73140 (patch)
treea8977c2175ced192ff17957eb2a8ea6bdd731f28
parentelput: Add API funtion to set evas device on a given seat (diff)
downloadefl-dc9ecac35c08289df29c499be8d0bcb65ee73140.tar.gz
elput: Add seat_device to Elput_Event_Device_Change
Small patch to add a new field to the Elput_Event_Device_Change structure which will allow us to pass along the seat evas_device during event @feature Signed-off-by: Chris Michael <cp.michael@samsung.com>
-rw-r--r--src/lib/elput/Elput.h1
-rw-r--r--src/lib/elput/elput_input.c1
-rw-r--r--src/lib/elput/elput_private.h2
3 files changed, 4 insertions, 0 deletions
diff --git a/src/lib/elput/Elput.h b/src/lib/elput/Elput.h
index 0799a21d13..2af887bb68 100644
--- a/src/lib/elput/Elput.h
+++ b/src/lib/elput/Elput.h
@@ -94,6 +94,7 @@ typedef enum _Elput_Device_Capability
/* structure to represent event for device being added or removed */
typedef struct _Elput_Event_Device_Change
{
+ Eo *seat_device;
Elput_Device *device;
Elput_Device_Change_Type type;
} Elput_Event_Device_Change;
diff --git a/src/lib/elput/elput_input.c b/src/lib/elput/elput_input.c
index d80e109007..f49cffaddf 100644
--- a/src/lib/elput/elput_input.c
+++ b/src/lib/elput/elput_input.c
@@ -168,6 +168,7 @@ _device_event_send(Elput_Device *edev, Elput_Device_Change_Type type)
ev = calloc(1, sizeof(Elput_Event_Device_Change));
if (!ev) return;
+ ev->seat_device = edev->seat->evas_device;
ev->device = edev;
ev->type = type;
diff --git a/src/lib/elput/elput_private.h b/src/lib/elput/elput_private.h
index 43ec79843f..23fb5991bc 100644
--- a/src/lib/elput/elput_private.h
+++ b/src/lib/elput/elput_private.h
@@ -191,6 +191,8 @@ struct _Elput_Seat
unsigned int modifiers;
+ Eo *evas_device;
+
Elput_Keyboard *kbd;
Elput_Pointer *ptr;
Elput_Touch *touch;