commit - 9f53ba9bae9aee077aa72cbc3fb5af6d27d20ec2
commit + ecc6fa05e1c8a3082eb9612873a27f1ebf8ffcce
blob - 94e035c947c7e01e1002470e4c468cb20a6aaede
blob + 5c6cd545dc077b1bb4937d047c90389712674942
--- star-platinum.c
+++ star-platinum.c
Display *d;
int ignored_modifiers[] = {
- 0, /* no modifiers */
+ 0, /* no modifiers */
LockMask, /* caps lock */
Mod2Mask, /* num lock */
Mod3Mask, /* scroll lock */
fname = NULL;
if (goterror)
- return 1;
+ return 1;
if (dump_config)
printgroup(config);
/* 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);
}
XClassHint ch;
int matched;
- if (!XGetClassHint(d, w, &ch)) {
+ if (!XGetClassHint(d, w, &ch)) {
fprintf(stderr, "XGetClassHint failed\n");
return 0;
}
/* unreachable */
abort();
}
- break;
+ break;
default:
/* unreachable */
int
match_window(struct match *m, Window w)
{
- switch (m->prop) {
+ switch (m->prop) {
case MANY:
return 1;
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;
}
}