aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--xchord.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/xchord.c b/xchord.c
index 3ceef51..7df852f 100644
--- a/xchord.c
+++ b/xchord.c
@@ -78,12 +78,12 @@ main(int argc, char *argv[])
case XI_RawButtonPress:
/* button 1 pressed */
if (rev->detail == 1) p1 = 1;
- /* button 1 + 3 pressed */
- if (p1 && rev->detail == 3) system("dwim");
break;
case XI_RawButtonRelease:
/* button 1 released */
if (rev->detail == 1) p1 = 0;
+ /* button 1 pressed + 3 released */
+ if (p1 && rev->detail == 3) system("dwim");
break;
}