aboutsummaryrefslogtreecommitdiff
path: root/samegame.c
diff options
context:
space:
mode:
authorBen Harris <bjh21@bjh21.me.uk>2023-07-31 23:02:45 +0100
committerBen Harris <bjh21@bjh21.me.uk>2023-07-31 23:02:45 +0100
commitecb3a9d6f219e95c694d7857f579c9ef2ebad064 (patch)
treefc25b1d1d8c1b602aea5382b40224962f42c4a65 /samegame.c
parent56237fa5fa0c2c56785f3667cb7d013dc9779352 (diff)
downloadpuzzles-ecb3a9d6f219e95c694d7857f579c9ef2ebad064.zip
puzzles-ecb3a9d6f219e95c694d7857f579c9ef2ebad064.tar.gz
puzzles-ecb3a9d6f219e95c694d7857f579c9ef2ebad064.tar.bz2
puzzles-ecb3a9d6f219e95c694d7857f579c9ef2ebad064.tar.xz
Same Game: don't hide keyboard cursor on unrecognised keys
Pressing "undo", for instance, should leave the keyboard cursor visible if it's visible already. Only mouse clicks should hide it.
Diffstat (limited to '')
-rw-r--r--samegame.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/samegame.c b/samegame.c
index 99b0df4..d0f75b3 100644
--- a/samegame.c
+++ b/samegame.c
@@ -1289,9 +1289,8 @@ static char *interpret_move(const game_state *state, game_ui *ui,
int tx, ty;
char *ret = MOVE_UI_UPDATE;
- ui->displaysel = false;
-
if (button == RIGHT_BUTTON || button == LEFT_BUTTON) {
+ ui->displaysel = false;
tx = FROMCOORD(x); ty= FROMCOORD(y);
} else if (IS_CURSOR_MOVE(button)) {
int dx = 0, dy = 0;