From 788eeb3c725ac7699e93a070e64e74bcc83d61c7 Mon Sep 17 00:00:00 2001 From: Changyeon Lee Date: Thu, 7 Nov 2019 14:38:21 +0900 Subject: [PATCH] e_hwc_windows: check target buffer changed after setting transition Change-Id: Ib688b49055c8e69fe39f12fbaeae767422ed8cea --- src/bin/e_hwc_windows.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/bin/e_hwc_windows.c b/src/bin/e_hwc_windows.c index cbe9003b7d..0ae16ea8b2 100644 --- a/src/bin/e_hwc_windows.c +++ b/src/bin/e_hwc_windows.c @@ -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 -- 2.34.1