ecore-drm2: Fix enabling outputs

Commit 9d583b3fdb 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: Chris Michael <cp.michael@samsung.com>
This commit is contained in:
Chris Michael 2018-01-09 12:43:15 -05:00
parent fdf0812883
commit 4aeca75cff
1 changed files with 1 additions and 1 deletions

View File

@ -1175,7 +1175,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);