Stuff
public c v1 · immutableTWidget * get_widget_under_mouse(void){ TWidget * ret = NULL; int start = 1; TWidgetList * twl = win->widgets; do { if (!start) { twl = twl->next; } start = 0; if(twl->v->name != "mouse") { if((mouse->x > twl->v->x) && (mouse->x < (twl->v->x + twl->v->w))) { if((mouse->y > twl->v->y) && (mouse->y < (twl->v->y + twl->v->h))) { ret = twl->v; } } } } while((ret = NULL) && (twl->next != NULL)); return ret;}