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 <cp.michael@samsung.com>
This commit is contained in:
Chris Michael 2018-02-06 13:01:25 -05:00
parent 8a296cb90f
commit e93f7bce30
1 changed files with 0 additions and 2 deletions

View File

@ -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;