summaryrefslogtreecommitdiff
path: root/src/lib/elput/elput_logind.c
diff options
context:
space:
mode:
authorChris Michael <cpmichael@osg.samsung.com>2016-04-06 10:26:46 -0400
committerChris Michael <cpmichael@osg.samsung.com>2016-04-13 14:16:17 -0400
commitb764978f29d86a3e42eac1de3e438e0932b4331f (patch)
treede7edcca9f650d94c867e71c7c245302ed88182c /src/lib/elput/elput_logind.c
parent3070c4cf08a28b2a9a3f4838ec78ce7f7bde95ec (diff)
elput: Create and raise event when seat capabilities change
Signed-off-by: Chris Michael <cpmichael@osg.samsung.com>
Diffstat (limited to 'src/lib/elput/elput_logind.c')
-rw-r--r--src/lib/elput/elput_logind.c21
1 files changed, 12 insertions, 9 deletions
diff --git a/src/lib/elput/elput_logind.c b/src/lib/elput/elput_logind.c
index c89ca2ae46..e829b4ac12 100644
--- a/src/lib/elput/elput_logind.c
+++ b/src/lib/elput/elput_logind.c
@@ -78,9 +78,10 @@ _cb_device_paused(void *data, const Eldbus_Message *msg)
78 if (!strcmp(type, "pause")) 78 if (!strcmp(type, "pause"))
79 _logind_device_pause_complete(em, maj, min); 79 _logind_device_pause_complete(em, maj, min);
80 80
81 /* TODO */ 81 if ((em->sync) && (maj == 226)) // DRM_MAJOR
82 /* if ((em->sync) && (maj == DRM_MAJOR)) */ 82 {
83 /* _ecore_drm2_launcher_activate_send(em, EINA_FALSE); */ 83 /* TODO: _ecore_drm2_launcher_activate_send(em, EINA_FALSE); */
84 }
84 } 85 }
85} 86}
86 87
@@ -102,9 +103,10 @@ _cb_device_resumed(void *data, const Eldbus_Message *msg)
102 103
103 if (eldbus_message_arguments_get(msg, "uuh", &maj, &min, &fd)) 104 if (eldbus_message_arguments_get(msg, "uuh", &maj, &min, &fd))
104 { 105 {
105 /* TODO */ 106 if ((em->sync) && (maj == 226)) // DRM_MAJOR
106 /* if ((em->sync) && (maj == DRM_MAJOR)) */ 107 {
107 /* _ecore_drm2_launcher_activate_send(em, EINA_TRUE); */ 108 /* TODO: _ecore_drm2_launcher_activate_send(em, EINA_TRUE); */
109 }
108 } 110 }
109} 111}
110 112
@@ -123,9 +125,10 @@ _cb_property_changed(void *data, Eldbus_Proxy *proxy EINA_UNUSED, void *event)
123 if (!strcmp(ev->name, "Active")) 125 if (!strcmp(ev->name, "Active"))
124 { 126 {
125 eina_value_get(ev->value, &active); 127 eina_value_get(ev->value, &active);
126 /* TODO */ 128 if ((!em->sync) || (!active))
127 /* if ((!em->sync) || (!active)) */ 129 {
128 /* _ecore_drm2_launcher_activate_send(em, active); */ 130 /* TODO: _ecore_drm2_launcher_activate_send(em, active); */
131 }
129 } 132 }
130} 133}
131 134