From 51e02e2afa27a0bc29cc856d263867801aa71567 Mon Sep 17 00:00:00 2001 From: Consolatis <35009135+Consolatis@users.noreply.github.com> Date: Wed, 2 Mar 2022 21:28:44 +0100 Subject: [PATCH] src/desktop.c: Fix label error Fixes "a label can only be part of a statement and a declaration is not a statement". --- src/desktop.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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; }