aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOmar Polo <op@omarpolo.com>2020-09-29 15:30:22 +0200
committerOmar Polo <op@omarpolo.com>2020-09-29 15:30:22 +0200
commitecc6fa05e1c8a3082eb9612873a27f1ebf8ffcce (patch)
tree0a7155e7583b09f3eff6962983445854cd6a0e21
parent9f53ba9bae9aee077aa72cbc3fb5af6d27d20ec2 (diff)
downloadstar-platinum-ecc6fa05e1c8a3082eb9612873a27f1ebf8ffcce.tar.gz
star-platinum-ecc6fa05e1c8a3082eb9612873a27f1ebf8ffcce.tar.bz2
tabify
-rw-r--r--star-platinum.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/star-platinum.c b/star-platinum.c
index 94e035c..5c6cd54 100644
--- a/star-platinum.c
+++ b/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;
}
}