ecore-evas-drm: Set window to receive input events

After we have setup ecore-drm, we need to tell it where to send any
input events, so call the ecore-drm API function to set the window.
Also feed mouse_in to the canvas after creation, so that it gets focus.

Signed-off-by: Chris Michael <cp.michael@samsung.com>
This commit is contained in:
Chris Michael 2014-03-10 12:38:51 +00:00
parent 2a36446402
commit 456e6f20e0
1 changed files with 12 additions and 5 deletions

View File

@ -213,6 +213,11 @@ ecore_evas_drm_new_internal(const char *device, unsigned int parent, int x, int
_ecore_evas_register(ee);
ecore_evas_input_event_register(ee);
ecore_drm_device_window_set(dev, ee);
evas_event_feed_mouse_in(ee->evas,
(unsigned int)((unsigned long long)
(ecore_time_get() * 1000.0) &
0xffffffff), NULL);
return ee;
@ -266,12 +271,14 @@ _ecore_evas_drm_init(void)
goto sprite_err;
}
/* NB: We don't need to create outputs here. Evas will create the
* framebuffers it needs */
/* try to create outputs */
if (!ecore_drm_outputs_create(dev))
{
ERR("Could not create outputs: %m");
goto output_err;
}
/* if (!ecore_drm_outputs_create(dev)) */
/* { */
/* ERR("Could not create outputs: %m"); */
/* goto output_err; */
/* } */
/* try to create inputs */
if (!ecore_drm_inputs_create(dev))