add: if (d->delayed_select) *(d->delayed_select) = 0;
context: delaySelection(void *data){    delay_data *d = (delay_data*)data;    int x, y, entry_no;    d->magic = NULL;    *(d->delayed_select) = 0;    if (findMenu(d->menu->menu->screen_ptr, &x, &y)) {        entry_no = getEntryAt(d->menu, x, y);        selectEntry(d->menu, entry_no);    }}