check bg_rectangle's layer when restacking
authorBoram Park <boram1288.park@samsung.com>
Wed, 17 Jan 2018 07:17:12 +0000 (16:17 +0900)
committerBoram Park <boram1288.park@samsung.com>
Wed, 17 Jan 2018 07:39:46 +0000 (16:39 +0900)
Change-Id: I0b57cff615eb920b7b29f2eac3fbd09efbb435da

src/bin/e_comp_wl.c

index a3a7d7ee16441252545fec19b2ea2e3c4389e44e..cd7f47c9720364aeeed991dbb606a37311381c3b 100644 (file)
@@ -2171,6 +2171,11 @@ _e_comp_wl_subsurface_restack_bg_rectangle(E_Client *ec)
 
    while (bottom)
      {
+        short layer = evas_object_layer_get(bottom->frame);
+
+        if (evas_object_layer_get(ec->comp_data->sub.below_obj) != layer)
+          evas_object_layer_set(ec->comp_data->sub.below_obj, layer);
+
         evas_object_stack_below(ec->comp_data->sub.below_obj, bottom->frame);
         bottom = eina_list_nth(bottom->comp_data->sub.below_list, 0);
      }