chiark / gitweb /
Slant: hide keyboard cursor when using the mouse.
[sgt-puzzles.git] / slant.c
diff --git a/slant.c b/slant.c
index fde984767bee088ddacc31a31e26be2f407d3555..6210d01af17da5f52976f3eee9ccf221d3e8cd23 100644 (file)
--- 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;