ecore-drm2: Account for output relative mode when getting cloned value

As an output may have it's relative mode set to clone from the E randr
dialog, we should account for that also when returning output cloned
mode.

Signed-off-by: Chris Michael <cp.michael@samsung.com>
This commit is contained in:
Chris Michael 2018-02-13 11:08:32 -05:00
parent a2a29f6ec1
commit f877f6c09f
1 changed files with 2 additions and 1 deletions

View File

@ -1381,7 +1381,8 @@ EAPI Eina_Bool
ecore_drm2_output_cloned_get(Ecore_Drm2_Output *output)
{
EINA_SAFETY_ON_NULL_RETURN_VAL(output, EINA_FALSE);
return output->cloned;
return (output->cloned ||
output->relative.mode == ECORE_DRM2_RELATIVE_CLONE);
}
EAPI unsigned int