Revert "e_hwc_windows: check target buffer changed after setting transition" 82/217882/1
authorChangyeon Lee <cyeon.lee@samsung.com>
Fri, 15 Nov 2019 07:01:48 +0000 (16:01 +0900)
committerChangyeon Lee <cyeon.lee@samsung.com>
Fri, 15 Nov 2019 07:01:58 +0000 (16:01 +0900)
This reverts commit 788eeb3c725ac7699e93a070e64e74bcc83d61c7.

Change-Id: I94b57346cd5e7294fc1a23c986169f3dfefb7e06

src/bin/e_hwc_windows.c

index 0ae16ea8b2c4ae9d067cb71709ed6b561f439451..cbe9003b7db5cdadfa76cbad2981cc9e09075e04 100644 (file)
@@ -1742,6 +1742,10 @@ _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))
@@ -1814,11 +1818,7 @@ _e_hwc_windows_transition_check(E_Hwc *hwc)
           }
      }
 
-   if ((((E_Hwc_Window *)target_hwc_window)->display.buffer.tsurface) ==
-       (((E_Hwc_Window *)target_hwc_window)->buffer.tsurface))
-     return EINA_TRUE;
-
-   return transition;
+    return transition;
 }
 
 static Eina_Bool