ref: dfca994cf6524c28b027e2331ea91281d835834d
parent: 205508e969cdb6aed54a1b75367e7bb3891c53ba
author: Ben Harris <bjh21@bjh21.me.uk>
date: Wed Aug 9 20:24:20 EDT 2023
Mosaic: use new move_cursor() features
--- a/mosaic.c
+++ b/mosaic.c
@@ -1184,10 +1184,8 @@
}
ui->cur_visible = false;
} else if (IS_CURSOR_MOVE(button)) {
- move_cursor(button, &ui->cur_x, &ui->cur_y, state->width,
- state->height, false, NULL);
- ui->cur_visible = true;
- return MOVE_UI_UPDATE;
+ return move_cursor(button, &ui->cur_x, &ui->cur_y, state->width,
+ state->height, false, &ui->cur_visible);
} else if (IS_CURSOR_SELECT(button)) {
if (!ui->cur_visible) {
ui->cur_x = 0;