diff options
author | Carsten Haitzler (Rasterman) <raster@rasterman.com> | 2017-11-07 11:04:03 +0900 |
---|---|---|
committer | Carsten Haitzler (Rasterman) <raster@rasterman.com> | 2017-11-08 20:37:50 +0900 |
commit | 7a7abb043add0af083c46305824d8c341daf2374 (patch) | |
tree | e25ef8ac67091ebc612b831361ece2a0f7420963 /src/lib/elput/elput.c | |
parent | 10b6eb627abe7f0419b1c76ff73faf90274e940b (diff) |
elput - re-enable switches (power buttons, lid etc.)
this is needed for devices that no longer produce aspi events for
these. otherwise good luck getting any event on lid open/close or on
pressing the power button. this also stops hiding switch events from
libinput and now you can get switch events to find lid or tablet mode
switching changes.
@fix
Diffstat (limited to 'src/lib/elput/elput.c')
-rw-r--r-- | src/lib/elput/elput.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/lib/elput/elput.c b/src/lib/elput/elput.c index 9519129759..f3cda411ea 100644 --- a/src/lib/elput/elput.c +++ b/src/lib/elput/elput.c | |||
@@ -13,6 +13,7 @@ EAPI int ELPUT_EVENT_MODIFIERS_SEND = 0; | |||
13 | EAPI int ELPUT_EVENT_DEVICE_CHANGE = 0; | 13 | EAPI int ELPUT_EVENT_DEVICE_CHANGE = 0; |
14 | EAPI int ELPUT_EVENT_SESSION_ACTIVE = 0; | 14 | EAPI int ELPUT_EVENT_SESSION_ACTIVE = 0; |
15 | EAPI int ELPUT_EVENT_POINTER_MOTION = 0; | 15 | EAPI int ELPUT_EVENT_POINTER_MOTION = 0; |
16 | EAPI int ELPUT_EVENT_SWITCH = 0; | ||
16 | EAPI int elput_event_session_ready = 0; | 17 | EAPI int elput_event_session_ready = 0; |
17 | 18 | ||
18 | EAPI int | 19 | EAPI int |
@@ -41,6 +42,7 @@ elput_init(void) | |||
41 | ELPUT_EVENT_DEVICE_CHANGE = ecore_event_type_new(); | 42 | ELPUT_EVENT_DEVICE_CHANGE = ecore_event_type_new(); |
42 | ELPUT_EVENT_SESSION_ACTIVE = ecore_event_type_new(); | 43 | ELPUT_EVENT_SESSION_ACTIVE = ecore_event_type_new(); |
43 | ELPUT_EVENT_POINTER_MOTION = ecore_event_type_new(); | 44 | ELPUT_EVENT_POINTER_MOTION = ecore_event_type_new(); |
45 | ELPUT_EVENT_SWITCH = ecore_event_type_new(); | ||
44 | elput_event_session_ready = ecore_event_type_new(); | 46 | elput_event_session_ready = ecore_event_type_new(); |
45 | } | 47 | } |
46 | 48 | ||
@@ -71,6 +73,7 @@ elput_shutdown(void) | |||
71 | ELPUT_EVENT_DEVICE_CHANGE, | 73 | ELPUT_EVENT_DEVICE_CHANGE, |
72 | ELPUT_EVENT_SESSION_ACTIVE, | 74 | ELPUT_EVENT_SESSION_ACTIVE, |
73 | ELPUT_EVENT_POINTER_MOTION, | 75 | ELPUT_EVENT_POINTER_MOTION, |
76 | ELPUT_EVENT_SWITCH, | ||
74 | elput_event_session_ready); | 77 | elput_event_session_ready); |
75 | 78 | ||
76 | eina_log_domain_unregister(_elput_log_dom); | 79 | eina_log_domain_unregister(_elput_log_dom); |