From: Seunghun Lee Date: Wed, 22 Jul 2020 04:00:32 +0000 (+0900) Subject: Revert "Revert "subsurface: declare local variable at the beginning of a function."" X-Git-Tag: submit/tizen/20200722.062048~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=b774fc5fb5ac6686e35499f6b736f8774ed7ea68;p=platform%2Fupstream%2Fenlightenment.git Revert "Revert "subsurface: declare local variable at the beginning of a function."" This reverts commit dc3353dd2213afc94de2873cba08f186bc9fd1ae. Change-Id: Ic40b32c2a79af35888e57ae1f3611917d7eccf92 --- diff --git a/src/bin/e_comp_wl_subsurface.c b/src/bin/e_comp_wl_subsurface.c index e199bd6787..96e32406a4 100644 --- a/src/bin/e_comp_wl_subsurface.c +++ b/src/bin/e_comp_wl_subsurface.c @@ -164,9 +164,11 @@ _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) { - E_Client *topmost = e_comp_wl_topmost_parent_get(ec); + 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);