chiark / gitweb /
Slant: hide keyboard cursor when using the mouse.
authorJonas Kölker <jonaskoelker@yahoo.com>
Mon, 21 Sep 2015 16:22:34 +0000 (18:22 +0200)
committerSimon Tatham <anakin@pobox.com>
Sat, 3 Oct 2015 15:59:04 +0000 (16:59 +0100)
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;