textscreen: Set parent pointer for conditionals.

We rely on the parent pointer to determine if the widget is being
hovered over. Set the parent pointer so that the background is set
properly for a widget in a conditional container.
This commit is contained in:
Simon Howard 2016-06-09 23:10:59 -04:00
parent ef4d10f978
commit 3626db3888

View file

@ -141,6 +141,8 @@ txt_conditional_t *TXT_NewConditional(int *var, int expected_value,
conditional->expected_value = expected_value;
conditional->child = child;
child->parent = &conditional->widget;
return conditional;
}