subsurface: Do not create below bg rectangle for argb window. 02/242702/1
authorSeunghun Lee <shiin.lee@samsung.com>
Mon, 31 Aug 2020 11:37:17 +0000 (20:37 +0900)
committerSeunghun Lee <shiin.lee@samsung.com>
Mon, 31 Aug 2020 11:37:17 +0000 (20:37 +0900)
This fixes a bug creating and destroying below bg rectangle repeatedly.

Change-Id: Ibd310e88daaeb230872812a63b3d762ef4326a36

src/bin/e_comp_wl_subsurface.c

index 81825efd3adf37ca5a299265373c4d25a09f7005..985b0ebbd45f5b9763467dbc56568ad864a0d3ac 100644 (file)
@@ -202,9 +202,10 @@ _e_comp_wl_subsurface_check_below_bg_rectangle(E_Client *ec)
      }
    else
      {
-        if ((topmost->comp_data->sub.below_list) ||
-            (topmost->comp_data->sub.below_list_pending) ||
-            (_e_comp_wl_subsurface_video_has(topmost)))
+        if ((!topmost->argb) &&
+            ((topmost->comp_data->sub.below_list) ||
+             (topmost->comp_data->sub.below_list_pending) ||
+             (_e_comp_wl_subsurface_video_has(topmost))))
           {
              ELOGF("COMP", "it has below subsurfaces and video.", topmost);
              _e_comp_wl_subsurface_below_obj_create(topmost);