ecore-evas-drm: Init outputs before inputs so that input devices can

have a pointer to outputs

Summary: In order to limit pointer motion, we need to assign an Output
to each Input device. In order to accomplish that, we need to
initialize Outputs first

@fix

Signed-off-by: Chris Michael <cp.michael@samsung.com>
This commit is contained in:
Chris Michael 2015-01-13 10:34:48 -05:00
parent 90ffc57f0c
commit bb8b00b956
1 changed files with 8 additions and 8 deletions

View File

@ -501,13 +501,6 @@ _ecore_evas_drm_init(const char *device)
goto sprite_err;
}
/* try to create inputs */
if (!ecore_drm_inputs_create(dev))
{
ERR("Could not create inputs: %m");
goto input_err;
}
/* try to create outputs */
if (!ecore_drm_outputs_create(dev))
{
@ -515,6 +508,13 @@ _ecore_evas_drm_init(const char *device)
goto output_err;
}
/* try to create inputs */
if (!ecore_drm_inputs_create(dev))
{
ERR("Could not create inputs: %m");
goto input_err;
}
ecore_event_evas_init();
return _ecore_evas_init_count;
@ -539,8 +539,8 @@ _ecore_evas_drm_shutdown(void)
{
if (--_ecore_evas_init_count != 0) return _ecore_evas_init_count;
/* NB: No need to free outputs here. Is done in device free */
ecore_drm_inputs_destroy(dev);
/* NB: No need to free outputs here. Is done in device free */
ecore_drm_sprites_destroy(dev);
ecore_drm_device_close(dev);
ecore_drm_device_free(dev);