dwm.c
changeset 1037 6f07d607d607
parent 1036 e6188cb17fa1
child 1039 5fa681ba70ae
equal deleted inserted replaced
1036:e6188cb17fa1 1037:6f07d607d607
   109 typedef struct {
   109 typedef struct {
   110 	regex_t *propregex;
   110 	regex_t *propregex;
   111 	regex_t *tagregex;
   111 	regex_t *tagregex;
   112 } Regs;
   112 } Regs;
   113 
   113 
   114 /* functions */
   114 /* function declarations */
   115 void applyrules(Client *c);
   115 void applyrules(Client *c);
   116 void arrange(void);
   116 void arrange(void);
   117 void attach(Client *c);
   117 void attach(Client *c);
   118 void attachstack(Client *c);
   118 void attachstack(Client *c);
   119 void ban(Client *c);
   119 void ban(Client *c);
   234 
   234 
   235 /* statically define the number of tags. */
   235 /* statically define the number of tags. */
   236 unsigned int ntags = sizeof tags / sizeof tags[0];
   236 unsigned int ntags = sizeof tags / sizeof tags[0];
   237 Bool seltags[sizeof tags / sizeof tags[0]] = {[0] = True};
   237 Bool seltags[sizeof tags / sizeof tags[0]] = {[0] = True};
   238 Bool prevtags[sizeof tags / sizeof tags[0]] = {[0] = True};
   238 Bool prevtags[sizeof tags / sizeof tags[0]] = {[0] = True};
       
   239 
       
   240 /* function implementations */
   239 void
   241 void
   240 applyrules(Client *c) {
   242 applyrules(Client *c) {
   241 	static char buf[512];
   243 	static char buf[512];
   242 	unsigned int i, j;
   244 	unsigned int i, j;
   243 	regmatch_t tmp;
   245 	regmatch_t tmp;