forked from enlightenment/efl
ecore-drm: Send ECORE_DRM_EVENT_OUTPUT on unplug also
Summary: If we unplug an output, we should still be sending this event so that the compositor can remove any unplugged outputs @fix Signed-off-by: Chris Michael <cp.michael@samsung.com>
This commit is contained in:
parent
9d0892b4f7
commit
92e10af291
|
@ -696,8 +696,6 @@ _ecore_drm_event_output_send(const Ecore_Drm_Output *output, Eina_Bool plug)
|
|||
|
||||
if (!(e = calloc(1, sizeof(Ecore_Drm_Event_Output)))) return;
|
||||
e->plug = plug;
|
||||
if (plug)
|
||||
{
|
||||
e->id = output->crtc_id;
|
||||
e->w = output->current_mode->width;
|
||||
e->h = output->current_mode->height;
|
||||
|
@ -710,7 +708,6 @@ _ecore_drm_event_output_send(const Ecore_Drm_Output *output, Eina_Bool plug)
|
|||
e->make = eina_stringshare_ref(output->make);
|
||||
e->model = eina_stringshare_ref(output->model);
|
||||
e->transform = 0;
|
||||
}
|
||||
ecore_event_add(ECORE_DRM_EVENT_OUTPUT, e,
|
||||
_ecore_drm_event_output_free, NULL);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue