ecore-drm2: Update connector state dpms value if setting works
authorChris Michael <cp.michael@samsung.com>
Thu, 18 May 2017 16:22:27 +0000 (12:22 -0400)
committerChris Michael <cp.michael@samsung.com>
Thu, 18 May 2017 16:22:27 +0000 (12:22 -0400)
If we successfully set dpms via atomic state, we should also update
the connector state dpms value

@fix

Signed-off-by: Chris Michael <cp.michael@samsung.com>
src/lib/ecore_drm2/ecore_drm2_outputs.c

index 2137197..31c5957 100644 (file)
@@ -441,6 +441,8 @@ _output_dpms_atomic_set(Ecore_Drm2_Output *output, int level)
         ret = EINA_FALSE;
      }
 
+   cstate->dpms.value = level;
+
 err:
    sym_drmModeAtomicFree(req);