diff options
author | Jaakko Keränen <jaakko.keranen@iki.fi> | 2021-02-22 11:54:41 +0200 |
---|---|---|
committer | Jaakko Keränen <jaakko.keranen@iki.fi> | 2021-02-22 11:54:41 +0200 |
commit | ecb72de43c2119139d87bef3da05819d3724c91a (patch) | |
tree | 35b7337e43c9f82baa3bfd10fc0a352d2b455e82 /src/ui/widget.c | |
parent | a042332c14d4710009638d83c87088fbc44c2ab4 (diff) |
Touch: Improved tap-and-hold
Clear gestures related to a widget if the widget is destroyed.
Diffstat (limited to 'src/ui/widget.c')
-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 31544cf8..c0e2feda 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 "touch.h" | ||
26 | #include "command.h" | 27 | #include "command.h" |
27 | #include "paint.h" | 28 | #include "paint.h" |
28 | #include "util.h" | 29 | #include "util.h" |
@@ -91,6 +92,7 @@ void deinit_Widget(iWidget *d) { | |||
91 | if (d->flags & keepOnTop_WidgetFlag) { | 92 | if (d->flags & keepOnTop_WidgetFlag) { |
92 | removeAll_PtrArray(onTop_RootData_(), d); | 93 | removeAll_PtrArray(onTop_RootData_(), d); |
93 | } | 94 | } |
95 | widgetDestroyed_Touch(d); | ||
94 | } | 96 | } |
95 | 97 | ||
96 | static void aboutToBeDestroyed_Widget_(iWidget *d) { | 98 | static void aboutToBeDestroyed_Widget_(iWidget *d) { |