e_hwc_windows: change the condition to check the gl_composite. 82/190382/2
authorSooChan Lim <sc1.lim@samsung.com>
Mon, 1 Oct 2018 07:18:58 +0000 (16:18 +0900)
committerSooChan Lim <sc1.lim@samsung.com>
Mon, 1 Oct 2018 11:23:53 +0000 (11:23 +0000)
Change-Id: Ia5b5f0cf4137ff1225b7dd8b47b80997c0ab7cb4

src/bin/e_hwc_windows.c

index 774ec5537f267d9f2e0baaeaf061a1305ba69d01..33f39a6768aa6283bbfb535a17e8d9bad936b271 100644 (file)
@@ -1457,11 +1457,10 @@ _e_hwc_windows_states_evaluate(E_Hwc *hwc)
    visible_windows = hwc->visible_windows;
 
    /* check the gles composite with all hwc_windows. */
-   if (!_e_hwc_windows_full_gl_composite_check(hwc, visible_windows))
-     {
-        /* by demand of hwc_window manager to prevent some e_clients to be shown by hw directly */
-        _e_hwc_windows_hwc_acceptable_check(visible_windows);
-     }
+   if (_e_hwc_windows_full_gl_composite_check(hwc, visible_windows)) return visible_windows;
+
+   /* by demand of hwc_window manager to prevent some e_clients to be shown by hw directly */
+   _e_hwc_windows_hwc_acceptable_check(visible_windows);
 
    return visible_windows;
 }