diff options
-rw-r--r-- | xchord.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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; } |