rule.c
// execute a rule on open windows
execute a rule on open windows
execute a rule on open windows
void rule_execute(char *rulestr)
{
	if (rule_parse(rulestr))
	{
		winrule *rule = config_rules;
		config_rules = rule->next;
		rule_apply(rule);
		rule_free(rule);
	}
}
void rule_execute ( char * rulestr ) { if ( rule_parse ( rulestr ) ) { winrule * rule = config_rules ; config_rules = rule -> next ; rule_apply ( rule ) ; rule_free ( rule ) ; } }
execute a rule on open windows
execute a rule on open windows