summaryrefslogtreecommitdiff
path: root/src/lib/ecore_drm/ecore_drm.c
diff options
context:
space:
mode:
authorChris Michael <cp.michael@samsung.com>2014-03-10 08:26:53 +0000
committerChris Michael <cp.michael@samsung.com>2014-03-10 12:40:30 +0000
commit337a18a5dd15789c701976cf82a88fbff6d90ab5 (patch)
tree670a3b41d40ca267d8c5ed5dc3f6aace7361ea30 /src/lib/ecore_drm/ecore_drm.c
parentfe7206d334dcbbbe02bfc6083a22be8e382a5cc9 (diff)
ecore-drm: Initialize ecore_event on ecore_drm_init
@bugfix: Initialize ecore_event on ecore_drm_init We need to make sure ecore_event_init has been called so we can process events for ecore_evas. Signed-off-by: Chris Michael <cp.michael@samsung.com>
Diffstat (limited to 'src/lib/ecore_drm/ecore_drm.c')
-rw-r--r--src/lib/ecore_drm/ecore_drm.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/lib/ecore_drm/ecore_drm.c b/src/lib/ecore_drm/ecore_drm.c
index ac181e379e..73585f494a 100644
--- a/src/lib/ecore_drm/ecore_drm.c
+++ b/src/lib/ecore_drm/ecore_drm.c
@@ -275,12 +275,21 @@ ecore_drm_init(void)
275 /* try to init eina */ 275 /* try to init eina */
276 if (!eina_init()) return --_ecore_drm_init_count; 276 if (!eina_init()) return --_ecore_drm_init_count;
277 277
278 /* try to init ecore */
278 if (!ecore_init()) 279 if (!ecore_init())
279 { 280 {
280 eina_shutdown(); 281 eina_shutdown();
281 return --_ecore_drm_init_count; 282 return --_ecore_drm_init_count;
282 } 283 }
283 284
285 /* try to init ecore_event */
286 if (!ecore_event_init())
287 {
288 ecore_shutdown();
289 eina_shutdown();
290 return --_ecore_drm_init_count;
291 }
292
284 /* set logging level */ 293 /* set logging level */
285 eina_log_level_set(EINA_LOG_LEVEL_DBG); 294 eina_log_level_set(EINA_LOG_LEVEL_DBG);
286 295
@@ -377,6 +386,10 @@ ecore_drm_shutdown(void)
377 close(_ecore_drm_sockets[0]); 386 close(_ecore_drm_sockets[0]);
378 close(_ecore_drm_sockets[1]); 387 close(_ecore_drm_sockets[1]);
379 388
389 /* shutdown ecore_event */
390 ecore_event_shutdown();
391
392 /* shutdown ecore */
380 ecore_shutdown(); 393 ecore_shutdown();
381 394
382 /* unregsiter log domain */ 395 /* unregsiter log domain */