]> git.mdlowis.com Git - proto/labwc.git/commitdiff
src/desktop.c: Fix label error
authorConsolatis <35009135+Consolatis@users.noreply.github.com>
Wed, 2 Mar 2022 20:28:44 +0000 (21:28 +0100)
committerJohan Malm <johanmalm@users.noreply.github.com>
Wed, 2 Mar 2022 20:43:59 +0000 (20:43 +0000)
Fixes "a label can only be part of a statement
and a declaration is not a statement".

src/desktop.c

index c1745f811aebc14d3f87bc2864b3658ce9f196d3..78c19a63466c27ec83aa6da0ec431cb6253259c8 100644 (file)
@@ -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;
 }