e_plane: if dpms is off, plane unfetch 69/81469/1
authorChangyeon Lee <cyeon.lee@samsung.com>
Tue, 26 Jul 2016 08:48:41 +0000 (17:48 +0900)
committerSooChan Lim <sc1.lim@samsung.com>
Tue, 26 Jul 2016 10:21:29 +0000 (19:21 +0900)
if dpms is off, tdm commit will be failed.
so don't tdm commit and unfetch plane

Change-Id: I0a0abc61db746b933d4dd368238d26ac684e50a7

src/bin/e_output.c

index 94bf100af303ef7f06830ef0a4204ccc698ce8bc..11ebc74417dabde55d34646fb79622d3f0ca8be4 100644 (file)
@@ -756,14 +756,17 @@ e_output_commit(E_Output *output)
         return EINA_FALSE;
      }
 
-   if (output->dpms == E_OUTPUT_DPMS_OFF)
-      return EINA_TRUE;
-
    /* set planes */
    EINA_LIST_REVERSE_FOREACH(output->planes, l, plane)
      {
         if (e_plane_fetch(plane))
          {
+            if (output->dpms == E_OUTPUT_DPMS_OFF)
+              {
+                 e_plane_unfetch(plane);
+                 continue;
+              }
+
             if (!commitable) commitable = EINA_TRUE;
          }
      }