From 4ebe643bdbd69ddea5c94439c3a0085836e91598 Mon Sep 17 00:00:00 2001 From: Seunghun Lee Date: Mon, 13 Jul 2020 13:25:35 +0900 Subject: [PATCH] subsurface: declare local variable at the beginning of a function. Change-Id: Id0c8e3e606bfe62cdcff97b1e0274c9cf11e74f3 --- src/bin/e_comp_wl_subsurface.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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); -- 2.34.1