ref: 3626db3888ee3f259f56ce71c7ee860546a73093
parent: ef4d10f97870d0cfc26fd3c60b0644ace0774678
author: Simon Howard <fraggle@soulsphere.org>
date: Thu Jun 9 19:10:59 EDT 2016
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.
--- a/textscreen/txt_conditional.c
+++ b/textscreen/txt_conditional.c
@@ -141,6 +141,8 @@
conditional->expected_value = expected_value;
conditional->child = child;
+ child->parent = &conditional->widget;
+
return conditional;
}