forked from enlightenment/efl
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>
This commit is contained in:
parent
0341d08831
commit
e8754ee9d2
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue