summaryrefslogtreecommitdiff
path: root/src/lib/ecore_wl2/ecore_wl2.c
diff options
context:
space:
mode:
authorBruno Dilly <bdilly@profusion.mobi>2016-10-05 10:36:19 -0300
committerBruno Dilly <bdilly@profusion.mobi>2016-11-01 16:06:19 -0200
commit7aab35961fcd4a8cb93126ec38bf7690b2c5c7d8 (patch)
treee8c9789fc05b3f963f8781e6525dd03e296cbb55 /src/lib/ecore_wl2/ecore_wl2.c
parentd7b1a5dfebfee95e77c4c4f2037755b75b7be908 (diff)
ecore_wl2: add ecore event for seat capabilities change
So when mouse / keyboard are present or not it will generate events. ecore_evas/wayland will handle that creating or deleting evas devices for each one (seat device will be used as parent).
Diffstat (limited to 'src/lib/ecore_wl2/ecore_wl2.c')
-rw-r--r--src/lib/ecore_wl2/ecore_wl2.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/lib/ecore_wl2/ecore_wl2.c b/src/lib/ecore_wl2/ecore_wl2.c
index ceb6dce80f..1855a96999 100644
--- a/src/lib/ecore_wl2/ecore_wl2.c
+++ b/src/lib/ecore_wl2/ecore_wl2.c
@@ -32,6 +32,7 @@ EAPI int ECORE_WL2_EVENT_WINDOW_CONFIGURE = 0;
32EAPI int ECORE_WL2_EVENT_SYNC_DONE = 0; 32EAPI int ECORE_WL2_EVENT_SYNC_DONE = 0;
33EAPI int ECORE_WL2_EVENT_OFFER_DATA_READY = 0; 33EAPI int ECORE_WL2_EVENT_OFFER_DATA_READY = 0;
34EAPI int ECORE_WL2_EVENT_SEAT_NAME_CHANGED = 0; 34EAPI int ECORE_WL2_EVENT_SEAT_NAME_CHANGED = 0;
35EAPI int ECORE_WL2_EVENT_SEAT_CAPABILITIES_CHANGED = 0;
35 36
36EAPI int _ecore_wl2_event_window_www = -1; 37EAPI int _ecore_wl2_event_window_www = -1;
37EAPI int _ecore_wl2_event_window_www_drag = -1; 38EAPI int _ecore_wl2_event_window_www_drag = -1;
@@ -91,6 +92,7 @@ ecore_wl2_init(void)
91 ECORE_WL2_EVENT_SYNC_DONE = ecore_event_type_new(); 92 ECORE_WL2_EVENT_SYNC_DONE = ecore_event_type_new();
92 ECORE_WL2_EVENT_OFFER_DATA_READY = ecore_event_type_new(); 93 ECORE_WL2_EVENT_OFFER_DATA_READY = ecore_event_type_new();
93 ECORE_WL2_EVENT_SEAT_NAME_CHANGED = ecore_event_type_new(); 94 ECORE_WL2_EVENT_SEAT_NAME_CHANGED = ecore_event_type_new();
95 ECORE_WL2_EVENT_SEAT_CAPABILITIES_CHANGED = ecore_event_type_new();
94 _ecore_wl2_event_window_www = ecore_event_type_new(); 96 _ecore_wl2_event_window_www = ecore_event_type_new();
95 _ecore_wl2_event_window_www_drag = ecore_event_type_new(); 97 _ecore_wl2_event_window_www_drag = ecore_event_type_new();
96 } 98 }
@@ -143,6 +145,7 @@ ecore_wl2_shutdown(void)
143 ECORE_WL2_EVENT_SYNC_DONE = 0; 145 ECORE_WL2_EVENT_SYNC_DONE = 0;
144 ECORE_WL2_EVENT_OFFER_DATA_READY = 0; 146 ECORE_WL2_EVENT_OFFER_DATA_READY = 0;
145 ECORE_WL2_EVENT_SEAT_NAME_CHANGED = 0; 147 ECORE_WL2_EVENT_SEAT_NAME_CHANGED = 0;
148 ECORE_WL2_EVENT_SEAT_CAPABILITIES_CHANGED = 0;
146 149
147 /* shutdown Ecore_Event */ 150 /* shutdown Ecore_Event */
148 ecore_event_shutdown(); 151 ecore_event_shutdown();