aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/ecore_drm
diff options
context:
space:
mode:
authorCedric BAIL <cedric@osg.samsung.com>2017-03-09 16:10:49 -0800
committerCedric BAIL <cedric@osg.samsung.com>2017-03-09 16:17:58 -0800
commit0e8a20a0a6d3b12dbc492c07d061bb9b5b618b37 (patch)
treeb5c0707bc73ed2a3846d9427051cac0b6449376b /src/lib/ecore_drm
parentecore_cocoa: avoid crash during shutdown due to Ecore_Event queue. (diff)
downloadefl-0e8a20a0a6d3b12dbc492c07d061bb9b5b618b37.tar.gz
ecore_drm: avoid crash during shutdown due to Ecore_Event queue.
Diffstat (limited to 'src/lib/ecore_drm')
-rw-r--r--src/lib/ecore_drm/ecore_drm.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/lib/ecore_drm/ecore_drm.c b/src/lib/ecore_drm/ecore_drm.c
index 431ff6b771..fb8c593b09 100644
--- a/src/lib/ecore_drm/ecore_drm.c
+++ b/src/lib/ecore_drm/ecore_drm.c
@@ -150,6 +150,10 @@ ecore_drm_shutdown(void)
/* if we are still in use, decrement init count and get out */
if (--_ecore_drm_init_count != 0) return _ecore_drm_init_count;
+ ecore_event_type_flush(ECORE_DRM_EVENT_ACTIVATE,
+ ECORE_DRM_EVENT_OUTPUT,
+ ECORE_DRM_EVENT_SEAT_ADD);
+
/* free the list of devices */
lists = eina_list_clone(ecore_drm_devices_get());
EINA_LIST_FREE(lists, dev)