From e93f7bce307489492d6cfb7f5578a36e4142a52d Mon Sep 17 00:00:00 2001 From: Chris Michael Date: Tue, 6 Feb 2018 13:01:25 -0500 Subject: [PATCH] ecore-drm2: Ensure output changed event is sent for removed outputs If an output gets disconnected, we would still like to be notified of that. In the _outputs_update function, we mark an output as disconnected by setting output->connected and output->enabled to FALSE. With this line in place (in the output_event_send function) we would never get notified if an output was disconnected. @fix Signed-off-by: Chris Michael --- src/lib/ecore_drm2/ecore_drm2_outputs.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/lib/ecore_drm2/ecore_drm2_outputs.c b/src/lib/ecore_drm2/ecore_drm2_outputs.c index 1d1861bd89..472c3c5f6b 100644 --- a/src/lib/ecore_drm2/ecore_drm2_outputs.c +++ b/src/lib/ecore_drm2/ecore_drm2_outputs.c @@ -87,8 +87,6 @@ _output_event_send(Ecore_Drm2_Output *output) { Ecore_Drm2_Event_Output_Changed *ev; - if ((!output->enabled) && (!output->connected)) return; - ev = calloc(1, sizeof(Ecore_Drm2_Event_Output_Changed)); if (!ev) return;