e_hwc_windows: check target buffer changed after setting transition 41/217341/1
authorChangyeon Lee <cyeon.lee@samsung.com>
Thu, 7 Nov 2019 05:38:21 +0000 (14:38 +0900)
committerChangyeon Lee <cyeon.lee@samsung.com>
Fri, 8 Nov 2019 05:23:59 +0000 (14:23 +0900)
Change-Id: Ib688b49055c8e69fe39f12fbaeae767422ed8cea

src/bin/e_hwc_windows.c

index cbe9003b7db5cdadfa76cbad2981cc9e09075e04..0ae16ea8b2c4ae9d067cb71709ed6b561f439451 100644 (file)
@@ -1742,10 +1742,6 @@ _e_hwc_windows_transition_check(E_Hwc *hwc)
         if (hwc_window->transition_failures > target_hwc_window->max_transition_failures)
           continue;
 
-        if ((((E_Hwc_Window *)target_hwc_window)->display.buffer.tsurface) ==
-            (((E_Hwc_Window *)target_hwc_window)->buffer.tsurface))
-          return EINA_TRUE;
-
         /* DEVICE -> CLIENT */
         if ((hwc_window->accepted_state == E_HWC_WINDOW_STATE_DEVICE) &&
             (hwc_window->state == E_HWC_WINDOW_STATE_CLIENT))
@@ -1818,7 +1814,11 @@ _e_hwc_windows_transition_check(E_Hwc *hwc)
           }
      }
 
-    return transition;
+   if ((((E_Hwc_Window *)target_hwc_window)->display.buffer.tsurface) ==
+       (((E_Hwc_Window *)target_hwc_window)->buffer.tsurface))
+     return EINA_TRUE;
+
+   return transition;
 }
 
 static Eina_Bool