Avoid calling widgets without handlers
This commit is contained in:
@ -136,7 +136,7 @@ struct widget_t *screen_widget_find_by_xy(struct screen_t *s, uint16_t x, uint16
|
||||
return NULL;
|
||||
|
||||
SLIST_FOREACH(wl, &s->widget_entries, entries) {
|
||||
LOG(LL_INFO, ("Inspecing widget '%s' (x=%d,y=%d,w=%d,h=%d)", wl->widget->name, wl->widget->x, wl->widget->y, wl->widget->w, wl->widget->h));
|
||||
LOG(LL_DEBUG, ("Inspecing widget '%s' (x=%d,y=%d,w=%d,h=%d)", wl->widget->name, wl->widget->x, wl->widget->y, wl->widget->w, wl->widget->h));
|
||||
if (wl->widget->x <= x &&
|
||||
x < (wl->widget->x+wl->widget->w) &&
|
||||
wl->widget->y <= y &&
|
||||
|
Reference in New Issue
Block a user