From: Seunghun Lee Date: Tue, 21 Jul 2020 09:44:30 +0000 (+0900) Subject: Revert "subsurface: declare local variable at the beginning of a function." X-Git-Tag: submit/tizen/20200721.101335~3 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=dc3353dd2213afc94de2873cba08f186bc9fd1ae;p=platform%2Fupstream%2Fenlightenment.git Revert "subsurface: declare local variable at the beginning of a function." This reverts commit 4ebe643bdbd69ddea5c94439c3a0085836e91598. Change-Id: Ia2d816b5e5d5c62f96b55723d26fd5a88904ffb6 --- diff --git a/src/bin/e_comp_wl_subsurface.c b/src/bin/e_comp_wl_subsurface.c index 96e32406a4..e199bd6787 100644 --- a/src/bin/e_comp_wl_subsurface.c +++ b/src/bin/e_comp_wl_subsurface.c @@ -164,11 +164,9 @@ _e_comp_wl_subsurface_below_obj_destroy(E_Client *ec) static void _e_comp_wl_subsurface_check_below_bg_rectangle(E_Client *ec) { - E_Client *topmost; - if (ec->comp_data->sub.data) { - 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; _e_comp_wl_subsurface_check_below_bg_rectangle(topmost);