commit ecc6fa05e1c8a3082eb9612873a27f1ebf8ffcce from: Omar Polo date: Tue Sep 29 13:30:22 2020 UTC tabify commit - 9f53ba9bae9aee077aa72cbc3fb5af6d27d20ec2 commit + ecc6fa05e1c8a3082eb9612873a27f1ebf8ffcce blob - 94e035c947c7e01e1002470e4c468cb20a6aaede blob + 5c6cd545dc077b1bb4937d047c90389712674942 --- star-platinum.c +++ star-platinum.c @@ -40,7 +40,7 @@ int goterror = 0; Display *d; int ignored_modifiers[] = { - 0, /* no modifiers */ + 0, /* no modifiers */ LockMask, /* caps lock */ Mod2Mask, /* num lock */ Mod3Mask, /* scroll lock */ @@ -146,7 +146,7 @@ main(int argc, char **argv) fname = NULL; if (goterror) - return 1; + return 1; if (dump_config) printgroup(config); @@ -216,7 +216,7 @@ grabkey(struct key k) /* printf("Grabbing "); printkey(k); printf("\n"); */ for (i = 0; i < len; ++i) { - XGrabKey(d, XKeysymToKeycode(d, k.key), + XGrabKey(d, XKeysymToKeycode(d, k.key), k.modifier | ignored_modifiers[i], root, False, GrabModeAsync, GrabModeAsync); } @@ -286,7 +286,7 @@ window_match_class(Window w, const char *class) XClassHint ch; int matched; - if (!XGetClassHint(d, w, &ch)) { + if (!XGetClassHint(d, w, &ch)) { fprintf(stderr, "XGetClassHint failed\n"); return 0; } @@ -325,7 +325,7 @@ do_action(struct action a, Window focused, int pressed /* unreachable */ abort(); } - break; + break; default: /* unreachable */ @@ -365,7 +365,7 @@ recfree_match(struct match *m) int match_window(struct match *m, Window w) { - switch (m->prop) { + switch (m->prop) { case MANY: return 1; @@ -467,7 +467,7 @@ process_event(struct group *g, XKeyEvent *e) for (r = g->rules; r != NULL; r = r->next) { if (rule_matched(r, pressed)) { - do_action(r->action, focused, e->type == KeyPress); + do_action(r->action, focused, e->type == KeyPress); return; } }