derekf pushed a commit to branch master.

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

commit 55c59d3c4095c5ce252078494222f7854372ae32
Author: Derek Foreman <[email protected]>
Date:   Fri Jul 15 12:01:31 2016 -0500

    ecore_drm2: Allow enabling outputs in drm events
    
    Previously a drm event could create a new output or disconnect an output,
    but could not re-enable an existing output.
    
    This results in failure to properly wake from screen blanker.
---
 src/lib/ecore_drm2/ecore_drm2_outputs.c | 18 ++++++++++++++++++
 1 file changed, 18 insertions(+)

diff --git a/src/lib/ecore_drm2/ecore_drm2_outputs.c 
b/src/lib/ecore_drm2/ecore_drm2_outputs.c
index 42e8e1a..1eb50d6 100644
--- a/src/lib/ecore_drm2/ecore_drm2_outputs.c
+++ b/src/lib/ecore_drm2/ecore_drm2_outputs.c
@@ -669,6 +669,24 @@ next:
                }
           }
      }
+
+   connected = (dev->alloc.conn & connected);
+   if (connected)
+     {
+        Ecore_Drm2_Output *output;
+        Eina_List *l;
+
+        EINA_LIST_FOREACH(dev->outputs, l, output)
+          {
+             if (connected & (1 << output->conn_id))
+               {
+                  connected &= ~(1 << output->conn_id);
+                  output->connected = EINA_TRUE;
+                  output->enabled = EINA_TRUE;
+                  _output_event_send(output);
+               }
+          }
+     }
 }
 
 static void

-- 


Reply via email to