diff options
author | Jaakko Keränen <jaakko.keranen@iki.fi> | 2021-05-13 07:53:18 +0300 |
---|---|---|
committer | Jaakko Keränen <jaakko.keranen@iki.fi> | 2021-05-13 07:53:18 +0300 |
commit | 767d9b363171b1f86d223dda34bd5ffa8addf072 (patch) | |
tree | 2427f70642b6bbd3b4672bfe9b7a1690249930ab /src | |
parent | be76ad93ea6218f6f3b019a07ddc074e84d86969 (diff) |
Widget: Remove timed commands when destroyed
Diffstat (limited to 'src')
-rw-r--r-- | src/ui/widget.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/ui/widget.c b/src/ui/widget.c index c1c920d2..fa05e8d1 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. */ | |||
23 | #include "widget.h" | 23 | #include "widget.h" |
24 | 24 | ||
25 | #include "app.h" | 25 | #include "app.h" |
26 | #include "periodic.h" | ||
26 | #include "touch.h" | 27 | #include "touch.h" |
27 | #include "command.h" | 28 | #include "command.h" |
28 | #include "paint.h" | 29 | #include "paint.h" |
@@ -99,6 +100,7 @@ static void aboutToBeDestroyed_Widget_(iWidget *d) { | |||
99 | if (flags_Widget(d) & keepOnTop_WidgetFlag) { | 100 | if (flags_Widget(d) & keepOnTop_WidgetFlag) { |
100 | removeOne_PtrArray(onTop_Root(d->root), d); | 101 | removeOne_PtrArray(onTop_Root(d->root), d); |
101 | } | 102 | } |
103 | remove_Periodic(periodic_App(), d); | ||
102 | if (isHover_Widget(d)) { | 104 | if (isHover_Widget(d)) { |
103 | get_Window()->hover = NULL; | 105 | get_Window()->hover = NULL; |
104 | } | 106 | } |