summaryrefslogtreecommitdiff
path: root/src/lib/ecore_drm2
diff options
context:
space:
mode:
authorChris Michael <cp.michael@samsung.com>2018-02-06 13:01:25 -0500
committerChris Michael <cp.michael@samsung.com>2018-02-06 13:01:25 -0500
commite93f7bce307489492d6cfb7f5578a36e4142a52d (patch)
treeb8dd87e86d2daa7c1b391a76e18d9cdbaf63420a /src/lib/ecore_drm2
parent8a296cb90fda3102e6d28c3da53ff652000b2ab7 (diff)
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>
Diffstat (limited to 'src/lib/ecore_drm2')
-rw-r--r--src/lib/ecore_drm2/ecore_drm2_outputs.c2
1 files changed, 0 insertions, 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)
87{ 87{
88 Ecore_Drm2_Event_Output_Changed *ev; 88 Ecore_Drm2_Event_Output_Changed *ev;
89 89
90 if ((!output->enabled) && (!output->connected)) return;
91
92 ev = calloc(1, sizeof(Ecore_Drm2_Event_Output_Changed)); 90 ev = calloc(1, sizeof(Ecore_Drm2_Event_Output_Changed));
93 if (!ev) return; 91 if (!ev) return;
94 92