create a bg rectangle only if topmost is valid and doesn't have it 75/89875/1
authorBoram Park <boram1288.park@samsung.com>
Tue, 27 Sep 2016 09:01:06 +0000 (18:01 +0900)
committerBoram Park <boram1288.park@samsung.com>
Tue, 27 Sep 2016 09:01:29 +0000 (18:01 +0900)
Change-Id: I969648508c55793d4827cedc262932379e3cde4b

src/bin/e_comp_wl.c

index 8a91153..0a06907 100644 (file)
@@ -3335,10 +3335,10 @@ _e_comp_wl_subsurface_check_below_bg_rectangle(E_Client *ec)
    if (ec->comp_data->sub.below_obj) return;
    if (ec->comp_data->sub.data)
      {
-         E_Client *topmost;
-         if (ec->comp_data->sub.below_list || ec->comp_data->sub.below_list_pending)
-           return;
-         topmost = _e_comp_wl_topmost_parent_get(ec);
+         E_Client *topmost = _e_comp_wl_topmost_parent_get(ec);
+         if (!topmost || e_object_is_del(E_OBJECT(topmost)) || !topmost->comp_data) return;
+         if (topmost->comp_data->sub.data) return;
+         if (topmost->comp_data->sub.below_obj) return;
          _e_comp_wl_subsurface_check_below_bg_rectangle(topmost);
          return;
      }