aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAlessandro Iezzi <aiezzi@alessandroiezzi.it>2023-05-29 22:59:36 +0200
committerAlessandro Iezzi <aiezzi@alessandroiezzi.it>2023-05-29 23:00:18 +0200
commit031e3a53569db5caf3f066323be99d4932f0bbdb (patch)
tree8ba6d53aa7b29975232632a08ec68010ba4f5778 /src
parentfcdab608e1441a9dbc730297e21d78be90ea70d6 (diff)
downloadcherry-031e3a53569db5caf3f066323be99d4932f0bbdb.tar.gz
cherry-031e3a53569db5caf3f066323be99d4932f0bbdb.zip
Call the draw function if the widget is invisible
and not drawn yet
Diffstat (limited to 'src')
-rw-r--r--src/widget.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/widget.c b/src/widget.c
index d733727..c3007e1 100644
--- a/src/widget.c
+++ b/src/widget.c
@@ -58,6 +58,9 @@ void
cherry_widget_set_visible(CherryWidget *widget, int visible)
{
widget->visible = visible;
+
+ if (visible && widget->drawn == 0)
+ widget->draw(widget);
}
void