summaryrefslogtreecommitdiff
path: root/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'main.c')
-rw-r--r--main.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/main.c b/main.c
index dda6af1..aba1b70 100644
--- a/main.c
+++ b/main.c
@@ -160,6 +160,8 @@ newgui(GuiElement *parent)
g->events = chancreate(sizeof(char *), 0);
+ settype(g, Gcontainer);
+
if(parent){
g->id = parent->nchildren;
wlock(&parent->lock);
@@ -169,8 +171,6 @@ newgui(GuiElement *parent)
wunlock(&parent->lock);
}
- settype(g, Gcontainer);
-
return g;
}