e_comp_screen: see the ECORE_DRM_EVENT_OUTPUT when ee uses sw engine
authorSooChan Lim <sc1.lim@samsung.com>
Wed, 20 Jul 2016 08:17:17 +0000 (17:17 +0900)
committerSooChan Lim <sc1.lim@samsung.com>
Mon, 25 Jul 2016 09:56:36 +0000 (18:56 +0900)
Change-Id: Ibd5ab43fb5fb79d11e1c011177b5ed17e19101e6

src/bin/e_comp_screen.c

index 1afa184..f15aa2d 100644 (file)
@@ -967,8 +967,10 @@ e_comp_screen_init()
                               ctx, map);
    e_main_ts("\tE_Comp_WL Keymap Init Done");
 
+   /* if gl_drm evas engine is used, we do not look at the drm_output */
+   if (!e_comp_gl_get()) E_LIST_HANDLER_APPEND(event_handlers, ECORE_DRM_EVENT_OUTPUT,           _e_comp_screen_cb_output_drm,       comp);
+
    E_LIST_HANDLER_APPEND(event_handlers, ECORE_DRM_EVENT_ACTIVATE,         _e_comp_screen_cb_activate,         comp);
-   E_LIST_HANDLER_APPEND(event_handlers, ECORE_DRM_EVENT_OUTPUT,           _e_comp_screen_cb_output_drm,       comp);
    E_LIST_HANDLER_APPEND(event_handlers, ECORE_DRM_EVENT_INPUT_DEVICE_ADD, _e_comp_screen_cb_input_device_add, comp);
    E_LIST_HANDLER_APPEND(event_handlers, ECORE_DRM_EVENT_INPUT_DEVICE_DEL, _e_comp_screen_cb_input_device_del, comp);