mirror of
git://git.tartarus.org/simon/puzzles.git
synced 2025-04-21 16:05:44 -07:00
Slant: hide keyboard cursor when using the mouse.
This commit is contained in:

committed by
Simon Tatham

parent
e59f820383
commit
ebf31f52b0
1
slant.c
1
slant.c
@ -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;
|
||||||
|
Reference in New Issue
Block a user