summary refs log tree commit diff
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2019-03-22 17:11:09 -0400
committerJune McEnroe <june@causal.agency>2019-03-22 17:11:09 -0400
commitae0f5af1467fb144f0e8b4b01ab92d37e6142a1e (patch)
tree599e397d9fcf1bd42639d45866824e1ad2e5813f
parentTreat multi-clicks as double-clicks (diff)
downloadwep-ae0f5af1467fb144f0e8b4b01ab92d37e6142a1e.tar.gz
wep-ae0f5af1467fb144f0e8b4b01ab92d37e6142a1e.zip
Treat multiple-of-two-clicks as double-clicks
-rw-r--r--sol.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sol.c b/sol.c
index ceaa9cf..0a0740c 100644
--- a/sol.c
+++ b/sol.c
@@ -335,7 +335,7 @@ static bool mouseButtonDown(SDL_MouseButtonEvent button) {
 	struct Item *item = layoutFind(&point);
 	if (!item) return false;
 	if (!gameAvail(item->card)) return gameReveal(item->card);
-	if (button.clicks > 1) {
+	if (button.clicks % 2 == 0) {
 		for (uint dest = Foundation1; dest <= Foundation4; ++dest) {
 			if (gameMove(dest, item->card)) return true;
 		}
4:15:36 -0500'>2019-12-23Restrict search to plain-text messagesJune McEnroe 2019-12-23Properly support using drill rather than digJune McEnroe 2019-12-22Document dig requirement in imbox(1)June McEnroe 2019-12-22Add CAVEAT about expecting plain-textJune McEnroe 2019-12-22Quote user, pass and mailboxJune McEnroe 2019-12-22Use sequence numbers rather than UIDsJune McEnroe 2019-12-22Use EXAMINE rather than SELECTJune McEnroe 2019-12-22Export To and CC headersJune McEnroe 2019-12-22Add missing includeJune McEnroe 2019-12-22Export In-Reply-To headersJune McEnroe 2019-12-21Add git-fetch-email to READMEJune McEnroe 2019-12-21Clarify purpose in READMEJune McEnroe 2019-12-21Add READMEJune McEnroe 2019-12-21Add copyright header to git-fetch-emailJune McEnroe 2019-12-21Add git-fetch-email to SEE ALSO of imboxJune McEnroe 2019-12-21Add git-fetch-email wrapperJune McEnroe 2019-12-21Determine host by SRV lookupJune McEnroe 2019-12-21Clean up remaining codeJune McEnroe 2019-12-21Clean up mboxrd codeJune McEnroe 2019-12-21Convert CRLF to LFJune McEnroe 2019-12-21Implement -CFSTJune McEnroe 2019-12-21Rewrite aspirational manualJune McEnroe 2019-12-21Null-terminate read literalsJune McEnroe