Slant: hide keyboard cursor when using the mouse.

This commit is contained in:
Jonas Kölker
2015-09-21 18:22:34 +02:00
committed by Simon Tatham
parent e59f820383
commit ebf31f52b0

View File

@ -1705,6 +1705,7 @@ static char *interpret_move(const game_state *state, game_ui *ui,
y = FROMCOORD(y); y = FROMCOORD(y);
if (x < 0 || y < 0 || x >= w || y >= h) if (x < 0 || y < 0 || x >= w || y >= h)
return NULL; return NULL;
ui->cur_visible = 0;
} else if (IS_CURSOR_SELECT(button)) { } else if (IS_CURSOR_SELECT(button)) {
if (!ui->cur_visible) { if (!ui->cur_visible) {
ui->cur_visible = 1; ui->cur_visible = 1;