summaryrefslogtreecommitdiff
path: root/src/lib/ecore_drm
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 /src/lib/ecore_drm
parent0341d08831436faa6d280ec8b040654c417491a2 (diff)
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>
Diffstat (limited to 'src/lib/ecore_drm')
-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
422 output->model = eina_stringshare_add("UNKNOWN"); 422 output->model = eina_stringshare_add("UNKNOWN");
423 output->name = eina_stringshare_add("UNKNOWN"); 423 output->name = eina_stringshare_add("UNKNOWN");
424 424
425 output->connected = (conn->connection == DRM_MODE_CONNECTED);
425 output->conn_type = conn->connector_type; 426 output->conn_type = conn->connector_type;
426 if (conn->connector_type < ALEN(conn_types)) 427 if (conn->connector_type < ALEN(conn_types))
427 type = conn_types[conn->connector_type]; 428 type = conn_types[conn->connector_type];
@@ -888,8 +889,6 @@ ecore_drm_outputs_create(Ecore_Drm_Device *dev)
888 _ecore_drm_output_create(dev, res, conn, x, y, EINA_FALSE))) 889 _ecore_drm_output_create(dev, res, conn, x, y, EINA_FALSE)))
889 goto next; 890 goto next;
890 891
891 output->connected = (conn->connection == DRM_MODE_CONNECTED);
892
893 x += output->current_mode->width; 892 x += output->current_mode->width;
894 893
895next: 894next: