From 076fe25f51308fc9222673ee2ef9cb8dca35d01c Mon Sep 17 00:00:00 2001 From: Alessandro Iezzi Date: Mon, 29 May 2023 22:49:11 +0200 Subject: Add the `drawn` flag in CherryWidget --- src/widget.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/widget.h') diff --git a/src/widget.h b/src/widget.h index d0c005d..41fff22 100644 --- a/src/widget.h +++ b/src/widget.h @@ -5,7 +5,6 @@ #include /* used by utils.h until I'll fix that */ #include -#include "dimension.h" /* The parent of all widgets */ typedef struct CherryWidget { @@ -13,6 +12,7 @@ typedef struct CherryWidget { CherryDimension *dimension; /* Size of the widget */ int visible; /* Is this visible? */ list_t widgets; /* A list of children widgets */ + int drawn; /* Set to 1 when draw() is called */ /* Xlib stuff */ // XSizeHints hints; -- cgit v1.2.3