devilhorns pushed a commit to branch master.

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

commit 4073519cacf1857754ecf07325221fdadb130bd1
Author: Chris Michael <cp.mich...@samsung.com>
Date:   Tue May 12 12:05:22 2015 -0400

    ecore-drm: Skip not connected outputs when calculating geometry
    
    Summary: When we make a call to get the geometry of all outputs, we
    should be skipping ones which are not connected.
    
    @fix
    
    Signed-off-by: Chris Michael <cp.mich...@samsung.com>
---
 src/lib/ecore_drm/ecore_drm_output.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/lib/ecore_drm/ecore_drm_output.c 
b/src/lib/ecore_drm/ecore_drm_output.c
index f1a3be3..5af5bf4 100644
--- a/src/lib/ecore_drm/ecore_drm_output.c
+++ b/src/lib/ecore_drm/ecore_drm_output.c
@@ -1081,6 +1081,7 @@ ecore_drm_outputs_geometry_get(Ecore_Drm_Device *dev, int 
*x, int *y, int *w, in
 
    EINA_LIST_FOREACH(dev->outputs, l, output)
      {
+        if (!output->connected) continue;
         if (output->cloned) continue;
         ow += MAX(ow, output->current_mode->width);
         oh = MAX(oh, output->current_mode->height);

-- 


Reply via email to