wl-drm: Add more debugging during output hotplug events

Signed-off-by: Chris Michael <cp.michael@samsung.com>
This commit is contained in:
Chris Michael 2015-03-21 16:30:36 -04:00
parent 5916823f79
commit 7855cbea0e
1 changed files with 13 additions and 4 deletions

View File

@ -62,12 +62,21 @@ _e_mod_drm_cb_output(void *data EINA_UNUSED, int type EINA_UNUSED, void *event)
if (!(e = event)) goto end;
if (!e->plug) goto end;
if (!e->plug)
{
DBG("Caught Drm Output Unplug Event");
/* FIXME: This needs to remove output from e_comp_wl */
goto end;
}
snprintf(buff, sizeof(buff), "%d", e->id);
e_comp_wl_output_init(buff, e->make, e->model, e->x, e->y, e->w, e->h,
e->phys_width, e->phys_height, e->refresh,
e->subpixel_order, e->transform);
if (!e_comp_wl_output_init(buff, e->make, e->model, e->x, e->y, e->w, e->h,
e->phys_width, e->phys_height, e->refresh,
e->subpixel_order, e->transform))
{
ERR("Could not setup new output: %s", buff);
}
end:
return ECORE_CALLBACK_PASS_ON;