From ecb3a9d6f219e95c694d7857f579c9ef2ebad064 Mon Sep 17 00:00:00 2001 From: Ben Harris Date: Mon, 31 Jul 2023 23:02:45 +0100 Subject: [PATCH] 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. --- samegame.c | 3 +-- 1 file changed, 1 insertion(+), 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;