diff options
author | Jaakko Keränen <jaakko.keranen@iki.fi> | 2021-09-18 13:21:42 +0300 |
---|---|---|
committer | Jaakko Keränen <jaakko.keranen@iki.fi> | 2021-09-18 13:21:42 +0300 |
commit | 7d7110c1dfe376334317983b4c2734ddb474ac8c (patch) | |
tree | d198c6bc21922639676c9284c3f9fe309f6d54ea /src/ui/widget.c | |
parent | 95941a8fca886ba258716c535d51d0d68d075993 (diff) |
Fixed crash when hovered widget is destroyed
Diffstat (limited to 'src/ui/widget.c')
-rw-r--r-- | src/ui/widget.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/ui/widget.c b/src/ui/widget.c index 184ce2a3..95a39470 100644 --- a/src/ui/widget.c +++ b/src/ui/widget.c | |||
@@ -156,6 +156,13 @@ void deinit_Widget(iWidget *d) { | |||
156 | if (d->flags & visualOffset_WidgetFlag) { | 156 | if (d->flags & visualOffset_WidgetFlag) { |
157 | removeTicker_App(visualOffsetAnimation_Widget_, d); | 157 | removeTicker_App(visualOffsetAnimation_Widget_, d); |
158 | } | 158 | } |
159 | iWindow *win = get_Window(); | ||
160 | if (win->lastHover == d) { | ||
161 | win->lastHover = NULL; | ||
162 | } | ||
163 | if (win->hover == d) { | ||
164 | win->hover = NULL; | ||
165 | } | ||
159 | widgetDestroyed_Touch(d); | 166 | widgetDestroyed_Touch(d); |
160 | } | 167 | } |
161 | 168 | ||