e_hwc_window: do not make all windows be clients at UI subsurface case 25/193325/1
authorSooChan Lim <sc1.lim@samsung.com>
Mon, 19 Nov 2018 09:43:18 +0000 (18:43 +0900)
committerSooChan Lim <sc1.lim@samsung.com>
Mon, 19 Nov 2018 09:43:18 +0000 (18:43 +0900)
Change-Id: Ie908d0a34a3fa93c6373b46294c4c9156451e869

src/bin/e_hwc_window.c
src/bin/e_hwc_windows.c

index aa40132d8116a1e9968e77d19610c229aaa083fe..e7d189ba75605fbac4e56168a35edf91a63a277d 100644 (file)
@@ -1828,6 +1828,15 @@ e_hwc_window_device_state_available_check(E_Hwc_Window *hwc_window)
           }
      }
 
+
+   // if there is UI subfrace, it means need to composite
+   if (e_client_normal_client_has(ec))
+     {
+        EHWTRACE("   -- {%25s} is forced to set CL state.(UI subfrace)",
+                  hwc_window->ec, hwc_window, ec->icccm.title);
+        return EINA_FALSE;
+     }
+
    return EINA_TRUE;
 }
 
index a62fb35ad2dd11ac1e5f1c83e35c03cf43f3634f..d8d3786051a5b358ee78636538c4aacaa8d371b5 100644 (file)
@@ -1160,14 +1160,6 @@ _e_hwc_windows_all_client_states_available_check(E_Hwc *hwc)
                        ec, ec->icccm.title);
              return EINA_TRUE;
           }
-
-        // if there is UI subfrace, it means need to composite
-        if (e_client_normal_client_has(ec))
-          {
-            EHWSTRACE("  HWC_MODE_NONE due to UI subfrace{%25s}.",
-                      ec, ec->icccm.title);
-            return EINA_TRUE;
-          }
      }
 
    return EINA_FALSE;