forked from enlightenment/efl
ecore-drm: Fix issue of hanging in read()
Summary: As we already call drmHandleEvent when we pageflip, we don't need to be using an fd handler to catch them. This should fix T2791 @fix Signed-off-by: Chris Michael <cp.michael@samsung.com>
This commit is contained in:
parent
ae7a243c99
commit
ff8b141f87
|
@ -340,10 +340,6 @@ ecore_drm_device_open(Ecore_Drm_Device *dev)
|
||||||
eeze_udev_watch_add(EEZE_UDEV_TYPE_DRM, events,
|
eeze_udev_watch_add(EEZE_UDEV_TYPE_DRM, events,
|
||||||
_ecore_drm_device_cb_output_event, dev);
|
_ecore_drm_device_cb_output_event, dev);
|
||||||
|
|
||||||
dev->drm.hdlr =
|
|
||||||
ecore_main_fd_handler_add(dev->drm.fd, ECORE_FD_READ,
|
|
||||||
_ecore_drm_device_cb_event, dev, NULL, NULL);
|
|
||||||
|
|
||||||
/* dev->drm.idler = */
|
/* dev->drm.idler = */
|
||||||
/* ecore_idle_enterer_add(_ecore_drm_device_cb_idle, dev); */
|
/* ecore_idle_enterer_add(_ecore_drm_device_cb_idle, dev); */
|
||||||
|
|
||||||
|
@ -362,9 +358,6 @@ ecore_drm_device_close(Ecore_Drm_Device *dev)
|
||||||
/* close xkb context */
|
/* close xkb context */
|
||||||
if (dev->xkb_ctx) xkb_context_unref(dev->xkb_ctx);
|
if (dev->xkb_ctx) xkb_context_unref(dev->xkb_ctx);
|
||||||
|
|
||||||
if (dev->drm.hdlr) ecore_main_fd_handler_del(dev->drm.hdlr);
|
|
||||||
dev->drm.hdlr = NULL;
|
|
||||||
|
|
||||||
_ecore_drm_launcher_device_close(dev->drm.name, dev->drm.fd);
|
_ecore_drm_launcher_device_close(dev->drm.name, dev->drm.fd);
|
||||||
|
|
||||||
/* reset device fd */
|
/* reset device fd */
|
||||||
|
|
Loading…
Reference in New Issue