diff options
Diffstat (limited to 'apps/gui/skin_engine/skin_tokens.c')
-rw-r--r-- | apps/gui/skin_engine/skin_tokens.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/apps/gui/skin_engine/skin_tokens.c b/apps/gui/skin_engine/skin_tokens.c index 1fbe3d714e..cf71014a62 100644 --- a/apps/gui/skin_engine/skin_tokens.c +++ b/apps/gui/skin_engine/skin_tokens.c @@ -1413,8 +1413,12 @@ const char *get_token_value(struct gui_wps *gwps, { #ifdef HAVE_TOUCHSCREEN unsigned int last_touch = touchscreen_last_touch(); + struct touchregion_lastpress *data = token->value.data; + if (data->region) + last_touch = data->region->last_press; + if (last_touch != 0xffff && - TIME_BEFORE(current_tick, token->value.i + last_touch)) + TIME_BEFORE(current_tick, data->timeout + last_touch)) return "t"; #endif } |