Commit efaff210 authored by Chris Michael's avatar Chris Michael Committed by Carsten Haitzler (Rasterman)

ecore-drm2: Fix enabling outputs

Commit 9d583b3f broke
ecore_drm2_output_enabled_set function due changing order of setting
output->enabled value. This patch fixes both issues by checking the
'enabled' variable being passed in.

@fix
Signed-off-by: default avatarChris Michael <cp.michael@samsung.com>
parent a76fd936
......@@ -1201,7 +1201,7 @@ ecore_drm2_output_enabled_set(Ecore_Drm2_Output *output, Eina_Bool enabled)
if (!output->connected) return;
if (output->enabled == enabled) return;
if (output->enabled)
if (enabled)
{
output->enabled = enabled;
ecore_drm2_output_dpms_set(output, DRM_MODE_DPMS_ON);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment