aboutsummaryrefslogtreecommitdiff
path: root/slant.c
diff options
context:
space:
mode:
authorJonas Kölker <jonaskoelker@yahoo.com>2015-09-21 18:22:34 +0200
committerSimon Tatham <anakin@pobox.com>2015-10-03 16:59:04 +0100
commitebf31f52b0dae356c7ad515b3e2e66672bd69a4e (patch)
tree58523f6058484c46a9488c7cac19438d8721da87 /slant.c
parente59f820383c9941640d04d7b23e5d964f7ad6ff6 (diff)
downloadpuzzles-ebf31f52b0dae356c7ad515b3e2e66672bd69a4e.zip
puzzles-ebf31f52b0dae356c7ad515b3e2e66672bd69a4e.tar.gz
puzzles-ebf31f52b0dae356c7ad515b3e2e66672bd69a4e.tar.bz2
puzzles-ebf31f52b0dae356c7ad515b3e2e66672bd69a4e.tar.xz
Slant: hide keyboard cursor when using the mouse.
Diffstat (limited to 'slant.c')
-rw-r--r--slant.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/slant.c b/slant.c
index fde9847..6210d01 100644
--- a/slant.c
+++ b/slant.c
@@ -1705,6 +1705,7 @@ static char *interpret_move(const game_state *state, game_ui *ui,
y = FROMCOORD(y);
if (x < 0 || y < 0 || x >= w || y >= h)
return NULL;
+ ui->cur_visible = 0;
} else if (IS_CURSOR_SELECT(button)) {
if (!ui->cur_visible) {
ui->cur_visible = 1;