ui->dsy = ui->dey = y;
ui->drag_ok = TRUE;
ui->cdisp = 0;
- return ""; /* ui updated */
+ return UI_UPDATE;
}
if ((IS_MOUSE_DRAG(button) || IS_MOUSE_RELEASE(button)) &&
}
if (IS_MOUSE_DRAG(button))
- return ""; /* ui updated */
+ return UI_UPDATE;
/*
* The drag has been released. Enact it.
*/
if (!ui->drag_ok) {
ui->drag_button = -1;
- return ""; /* drag was just cancelled */
+ return UI_UPDATE; /* drag was just cancelled */
}
xmin = min(ui->dsx, ui->dex);
if (buflen == 0) {
sfree(buf);
- return ""; /* ui updated (drag was terminated) */
+ return UI_UPDATE; /* drag was terminated */
} else {
buf[buflen] = '\0';
return buf;
if (len) return dupstr(tmpbuf);
} else
move_cursor(button, &ui->cx, &ui->cy, w, h, 0);
- return "";
+ return UI_UPDATE;
}
if (ui->cdisp) {
char rep = 0;
}
} else if (IS_CURSOR_SELECT(button)) {
ui->cdisp = 1;
- return "";
+ return UI_UPDATE;
}
return NULL;