fix indentation

This commit is contained in:
Jérémy Anger
2012-04-12 15:04:24 +02:00
parent 3540bb1cad
commit 653d8d9b7b
2 changed files with 24 additions and 24 deletions

View File

@@ -849,31 +849,31 @@ client_frame_new(struct client *c)
static void static void
_apply_rule(struct client *c, struct rule *r) _apply_rule(struct client *c, struct rule *r)
{ {
if(r->screen != -1) if(r->screen != -1)
c->screen = screen_gb_id(r->screen); c->screen = screen_gb_id(r->screen);
c->tag = c->screen->seltag; c->tag = c->screen->seltag;
if(r->tag != -1) if(r->tag != -1)
c->tag = tag_gb_id(c->screen, r->tag); c->tag = tag_gb_id(c->screen, r->tag);
c->theme = r->theme; c->theme = r->theme;
/* free = false for originally free client */ /* free = false for originally free client */
if(r->flags & RULE_FREE) if(r->flags & RULE_FREE)
c->flags |= CLIENT_FREE; c->flags |= CLIENT_FREE;
else else
c->flags &= ~CLIENT_FREE; c->flags &= ~CLIENT_FREE;
/* Free rule is not compatible with tab rule */ /* Free rule is not compatible with tab rule */
if(r->flags & RULE_TAB) if(r->flags & RULE_TAB)
W->flags ^= WMFS_TABNOC; /* < can be disable by client_tab_next_opened */ W->flags ^= WMFS_TABNOC; /* < can be disable by client_tab_next_opened */
/* TODO /* TODO
if(r->flags & RULE_IGNORE_TAG) if(r->flags & RULE_IGNORE_TAG)
{} {}
*/ */
c->flags |= CLIENT_RULED; c->flags |= CLIENT_RULED;
} }
#define RINSTANCE 0x01 #define RINSTANCE 0x01
@@ -916,8 +916,8 @@ client_apply_rule(struct client *c)
/* Apply a specific rule */ /* Apply a specific rule */
SLIST_FOREACH(r, &W->h.rule, next) SLIST_FOREACH(r, &W->h.rule, next)
{ {
if (r->instance && !strcmp(r->instance, "*")) if (r->instance && !strcmp(r->instance, "*"))
defaultr = r; defaultr = r;
if(s) if(s)
{ {
FLAGAPPLY(flags, (xch.res_name && r->instance && !strcmp(xch.res_name, r->instance)), RINSTANCE); FLAGAPPLY(flags, (xch.res_name && r->instance && !strcmp(xch.res_name, r->instance)), RINSTANCE);
@@ -928,7 +928,7 @@ client_apply_rule(struct client *c)
FLAGAPPLY(flags, ((role && r->role && !strcmp(role, r->role)) || !role || !r->role), RROLE); FLAGAPPLY(flags, ((role && r->role && !strcmp(role, r->role)) || !role || !r->role), RROLE);
if(flags & (RINSTANCE | RCLASS | RNAME) && flags & RROLE) if(flags & (RINSTANCE | RCLASS | RNAME) && flags & RROLE)
_apply_rule(c, r); _apply_rule(c, r);
flags = 0; flags = 0;
} }
@@ -940,7 +940,7 @@ client_apply_rule(struct client *c)
/* Apply default rule */ /* Apply default rule */
if (!(c->flags & CLIENT_RULED) && defaultr != NULL) if (!(c->flags & CLIENT_RULED) && defaultr != NULL)
_apply_rule(c, defaultr); _apply_rule(c, defaultr);
} }
struct client* struct client*

View File

@@ -284,7 +284,7 @@ config_rule(void)
else else
r->theme = W->ctheme; r->theme = W->ctheme;
SLIST_INSERT_HEAD(&W->h.rule, r, next); SLIST_INSERT_HEAD(&W->h.rule, r, next);
} }
free(ks); free(ks);