summaryrefslogtreecommitdiff
path: root/src/lib/ecore_drm2
diff options
context:
space:
mode:
authorChris Michael <cp.michael@samsung.com>2018-02-13 11:08:32 -0500
committerChris Michael <cp.michael@samsung.com>2018-02-20 08:53:59 -0500
commitf877f6c09f06a26bedd7b3fac24f8227b32d8e18 (patch)
tree4801fcabcc582eca0a6d27c856e2b108626e50ba /src/lib/ecore_drm2
parenta2a29f6ec12a6bf37c3bb1578792a3fc985894e9 (diff)
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>
Diffstat (limited to 'src/lib/ecore_drm2')
-rw-r--r--src/lib/ecore_drm2/ecore_drm2_outputs.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/lib/ecore_drm2/ecore_drm2_outputs.c b/src/lib/ecore_drm2/ecore_drm2_outputs.c
index 79a22c5363..87c50375be 100644
--- a/src/lib/ecore_drm2/ecore_drm2_outputs.c
+++ b/src/lib/ecore_drm2/ecore_drm2_outputs.c
@@ -1381,7 +1381,8 @@ EAPI Eina_Bool
1381ecore_drm2_output_cloned_get(Ecore_Drm2_Output *output) 1381ecore_drm2_output_cloned_get(Ecore_Drm2_Output *output)
1382{ 1382{
1383 EINA_SAFETY_ON_NULL_RETURN_VAL(output, EINA_FALSE); 1383 EINA_SAFETY_ON_NULL_RETURN_VAL(output, EINA_FALSE);
1384 return output->cloned; 1384 return (output->cloned ||
1385 output->relative.mode == ECORE_DRM2_RELATIVE_CLONE);
1385} 1386}
1386 1387
1387EAPI unsigned int 1388EAPI unsigned int