devilhorns pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=e93f7bce307489492d6cfb7f5578a36e4142a52d

commit e93f7bce307489492d6cfb7f5578a36e4142a52d
Author: Chris Michael <[email protected]>
Date:   Tue Feb 6 13:01:25 2018 -0500

    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 <[email protected]>
---
 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;
 

-- 


Reply via email to