summaryrefslogtreecommitdiff
path: root/src/lib/elput/elput.c
diff options
context:
space:
mode:
authorChris Michael <cpmichael@osg.samsung.com>2016-05-09 11:01:30 -0400
committerChris Michael <cpmichael@osg.samsung.com>2016-05-09 11:01:30 -0400
commit3de066469ae76c22e50e9f78b03f1841d81cd7cc (patch)
treede812f28a53f7cadaff7797fd1923d94d9e30b79 /src/lib/elput/elput.c
parent9ed2f42c08c5adffbd4c13043923a1d5683d0bf1 (diff)
elput: Support sending of session activate/deactivate event
This patch adds support for notifying when a session gets activated or deactivated. This will be used in drm2 to notify compositor when to pause/restart rendering during a vt switch @feature Signed-off-by: Chris Michael <cpmichael@osg.samsung.com>
Diffstat (limited to 'src/lib/elput/elput.c')
-rw-r--r--src/lib/elput/elput.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/lib/elput/elput.c b/src/lib/elput/elput.c
index 2e54b3ec28..95d7a1e6c4 100644
--- a/src/lib/elput/elput.c
+++ b/src/lib/elput/elput.c
@@ -11,6 +11,7 @@ EAPI int ELPUT_EVENT_SEAT_FRAME = -1;
11EAPI int ELPUT_EVENT_KEYMAP_SEND = -1; 11EAPI int ELPUT_EVENT_KEYMAP_SEND = -1;
12EAPI int ELPUT_EVENT_MODIFIERS_SEND = -1; 12EAPI int ELPUT_EVENT_MODIFIERS_SEND = -1;
13EAPI int ELPUT_EVENT_DEVICE_CHANGE = -1; 13EAPI int ELPUT_EVENT_DEVICE_CHANGE = -1;
14EAPI int ELPUT_EVENT_SESSION_ACTIVE = -1;
14 15
15EAPI int 16EAPI int
16elput_init(void) 17elput_init(void)
@@ -34,6 +35,7 @@ elput_init(void)
34 ELPUT_EVENT_KEYMAP_SEND = ecore_event_type_new(); 35 ELPUT_EVENT_KEYMAP_SEND = ecore_event_type_new();
35 ELPUT_EVENT_MODIFIERS_SEND = ecore_event_type_new(); 36 ELPUT_EVENT_MODIFIERS_SEND = ecore_event_type_new();
36 ELPUT_EVENT_DEVICE_CHANGE = ecore_event_type_new(); 37 ELPUT_EVENT_DEVICE_CHANGE = ecore_event_type_new();
38 ELPUT_EVENT_SESSION_ACTIVE = ecore_event_type_new();
37 39
38 return _elput_init_count; 40 return _elput_init_count;
39 41
@@ -60,6 +62,7 @@ elput_shutdown(void)
60 ELPUT_EVENT_KEYMAP_SEND = -1; 62 ELPUT_EVENT_KEYMAP_SEND = -1;
61 ELPUT_EVENT_MODIFIERS_SEND = -1; 63 ELPUT_EVENT_MODIFIERS_SEND = -1;
62 ELPUT_EVENT_DEVICE_CHANGE = -1; 64 ELPUT_EVENT_DEVICE_CHANGE = -1;
65 ELPUT_EVENT_SESSION_ACTIVE = -1;
63 66
64 eina_log_domain_unregister(_elput_log_dom); 67 eina_log_domain_unregister(_elput_log_dom);
65 _elput_log_dom = -1; 68 _elput_log_dom = -1;