buffer null
authorSooChan Lim <sc1.lim@samsung.com>
Wed, 17 Jan 2018 01:33:05 +0000 (10:33 +0900)
committerSooChan Lim <sc1.lim@samsung.com>
Wed, 17 Jan 2018 02:00:16 +0000 (11:00 +0900)
Change-Id: Ia195261e17b98ec496c568c15c449dfd0ce2d6cd

src/bin/e_output_hwc_windows.c

index 3f9378f2bbb4c8933ce6fede6ad00156fe1989aa..6a41078e4aec056f6d6b2e185305cbe54ef3d122 100644 (file)
@@ -227,7 +227,9 @@ _e_output_hwc_windows_can_commit(E_Output *output)
 {
    Eina_List *l;
    E_Hwc_Window *hwc_window;
+   E_Client *ec;
    Eina_Bool can_commit = EINA_TRUE;
+   Eina_Bool matched_output_size = EINA_FALSE;
 
    EINA_SAFETY_ON_NULL_RETURN_VAL(output->output_hwc, EINA_FALSE);
 
@@ -245,8 +247,20 @@ _e_output_hwc_windows_can_commit(E_Output *output)
 
              can_commit = EINA_FALSE;
           }
+        else
+          {  /* check if the size of the surface is the same as the one of the output */
+             if (matched_output_size == EINA_FALSE)
+               {
+                ec = hwc_window->ec;
+                if (ec->w == output->config.geom.w && ec->h == output->config.geom.h)
+                  matched_output_size = EINA_TRUE;
+               }
+          }
      }
 
+   if (matched_output_size == EINA_FALSE)
+     can_commit = EINA_FALSE;
+
    return can_commit;
 }