From: Consolatis <35009135+Consolatis@users.noreply.github.com> Date: Wed, 2 Mar 2022 20:28:44 +0000 (+0100) Subject: src/desktop.c: Fix label error X-Git-Url: https://git.mdlowis.com/?a=commitdiff_plain;h=51e02e2afa27a0bc29cc856d263867801aa71567;p=proto%2Flabwc.git src/desktop.c: Fix label error Fixes "a label can only be part of a statement and a declaration is not a statement". --- diff --git a/src/desktop.c b/src/desktop.c index c1745f81..78c19a63 100644 --- a/src/desktop.c +++ b/src/desktop.c @@ -315,9 +315,11 @@ desktop_node_and_view_at(struct server *server, double lx, double ly, *view_area = LAB_SSD_NONE; return NULL; +struct view *view; +struct node_descriptor *desc; has_view_data: - struct node_descriptor *desc = node->data; - struct view *view = desc->data; + desc = node->data; + view = desc->data; *view_area = ssd_get_part_type(view, *scene_node); return view; }