From b2e19df49b20fe76299b23a0a4535bce3f51aaf8 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Jaakko=20Kera=CC=88nen?= jaakko.keranen@iki.fi
Date: Thu, 13 May 2021 07:53:18 +0300
Subject: [PATCH 1/1] Widget: Remove timed commands when destroyed
src/ui/widget.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/src/ui/widget.c b/src/ui/widget.c
index 67ce1345..07e8e753 100644
--- a/src/ui/widget.c
+++ b/src/ui/widget.c
@@ -23,6 +23,7 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */
#include "widget.h"
#include "app.h"
+#include "periodic.h"
#include "touch.h"
#include "command.h"
#include "paint.h"
@@ -98,6 +99,7 @@ static void aboutToBeDestroyed_Widget_(iWidget *d) {
if (flags_Widget(d) & keepOnTop_WidgetFlag) {
removeOne_PtrArray(onTop_Root(d->root), d);
}
if (isHover_Widget(d)) {
get_Window()->hover = NULL;
}
--
2.25.1
text/plain
This content has been proxied by September (ba2dc).