Index: apps/gui/skin_engine/skin_tokens.c =================================================================== --- apps/gui/skin_engine/skin_tokens.c (revision 25316) +++ apps/gui/skin_engine/skin_tokens.c (working copy) @@ -915,11 +915,15 @@ } return NULL; case WPS_TOKEN_LASTTOUCH: + { #ifdef HAVE_TOUCHSCREEN - if (TIME_BEFORE(current_tick, token->value.i * TIMEOUT_UNIT + - touchscreen_last_touch())) + unsigned int last_touch = touchscreen_last_touch(); + if (last_touch != 0xffff && + TIME_BEFORE(current_tick, token->value.i * TIMEOUT_UNIT + + last_touch)) return "t"; #endif + } return NULL; case WPS_TOKEN_SETTING: