e_policy_wl: fix cw->layer and ec->layer dismatch 78/212578/4
authorJuyeon Lee <juyeonne.lee@samsung.com>
Fri, 23 Aug 2019 06:16:30 +0000 (15:16 +0900)
committerDoyoun Kang <doyoun.kang@samsung.com>
Fri, 30 Aug 2019 02:51:32 +0000 (02:51 +0000)
if ec->layer is pre-assigned before call of evas_object_layer_set()
and at the same time if the condition 'ec->layer_pending' TRUE than,
ec->layer could dismatch with cw->layer because it is not set.

Change-Id: Ia74ab444aa6fbb871a7d5ce5c7d79190af2248cc

src/bin/e_policy_wl.c

index 44d6ecd1fc66d301d9e5b9c6659f7460422b9d70..0d1cb444a4383a0dd741e8736266bf84485c3072 100644 (file)
@@ -1751,12 +1751,7 @@ _tzpol_iface_cb_type_set(struct wl_client *client EINA_UNUSED, struct wl_resourc
          win_type = E_WINDOW_TYPE_NORMAL;
          if (ec->layer != E_LAYER_CLIENT_NORMAL)
            {
-              ec->layer = E_LAYER_CLIENT_NORMAL;
-              if (ec->frame)
-                {
-                   if (ec->layer != evas_object_layer_get(ec->frame))
-                     evas_object_layer_set(ec->frame, ec->layer);
-                }
+              e_client_layer_set(ec, E_LAYER_CLIENT_NORMAL);
            }
          break;