summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Michael <cp.michael@samsung.com>2015-05-06 09:41:03 -0400
committerChris Michael <cp.michael@samsung.com>2015-05-07 14:39:46 -0400
commite8754ee9d2c68f616eb7e5e9e9a79488c6e70336 (patch)
tree376ef4cf422b87b5ab054e01c001963c5e6d08f4
parent0341d08831436faa6d280ec8b040654c417491a2 (diff)
downloadefl-e8754ee9d2c68f616eb7e5e9e9a79488c6e70336.tar.gz
ecore-drm: Set output connected property in the creation function
Summary: Makes more sense to set the output's connected property inside the function which creates outputs. @fix Signed-off-by: Chris Michael <cp.michael@samsung.com>
-rw-r--r--src/lib/ecore_drm/ecore_drm_output.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/lib/ecore_drm/ecore_drm_output.c b/src/lib/ecore_drm/ecore_drm_output.c
index 5a1f5312cd..2e91909893 100644
--- a/src/lib/ecore_drm/ecore_drm_output.c
+++ b/src/lib/ecore_drm/ecore_drm_output.c
@@ -422,6 +422,7 @@ _ecore_drm_output_create(Ecore_Drm_Device *dev, drmModeRes *res, drmModeConnecto
output->model = eina_stringshare_add("UNKNOWN");
output->name = eina_stringshare_add("UNKNOWN");
+ output->connected = (conn->connection == DRM_MODE_CONNECTED);
output->conn_type = conn->connector_type;
if (conn->connector_type < ALEN(conn_types))
type = conn_types[conn->connector_type];
@@ -888,8 +889,6 @@ ecore_drm_outputs_create(Ecore_Drm_Device *dev)
_ecore_drm_output_create(dev, res, conn, x, y, EINA_FALSE)))
goto next;
- output->connected = (conn->connection == DRM_MODE_CONNECTED);
-
x += output->current_mode->width;
next: