aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/ecore_drm
diff options
context:
space:
mode:
authorChris Michael <cp.michael@samsung.com>2015-05-12 12:05:22 -0400
committerChris Michael <cp.michael@samsung.com>2015-05-12 12:07:31 -0400
commit4073519cacf1857754ecf07325221fdadb130bd1 (patch)
tree0d9b1e8764b9cf56c29ab4433105316a5cd6495f /src/lib/ecore_drm
parentecore-drm: Fix finding possible crtcs (diff)
downloadefl-4073519cacf1857754ecf07325221fdadb130bd1.tar.gz
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.michael@samsung.com>
Diffstat (limited to 'src/lib/ecore_drm')
-rw-r--r--src/lib/ecore_drm/ecore_drm_output.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/lib/ecore_drm/ecore_drm_output.c b/src/lib/ecore_drm/ecore_drm_output.c
index f1a3be3474..5af5bf4241 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);