equal
deleted
inserted
replaced
231 Regs *regs = NULL; |
231 Regs *regs = NULL; |
232 |
232 |
233 /* configuration, allows nested code to access above variables */ |
233 /* configuration, allows nested code to access above variables */ |
234 #include "config.h" |
234 #include "config.h" |
235 |
235 |
236 Bool prevtags[LENGTH(tags)] = {[0] = True}; |
236 Bool prevtags[LENGTH(tags)]; |
237 |
237 |
238 /* function implementations */ |
238 /* function implementations */ |
239 void |
239 void |
240 applyrules(Client *c) { |
240 applyrules(Client *c) { |
241 static char buf[512]; |
241 static char buf[512]; |
1465 |
1465 |
1466 /* grab keys */ |
1466 /* grab keys */ |
1467 grabkeys(); |
1467 grabkeys(); |
1468 |
1468 |
1469 /* init tags */ |
1469 /* init tags */ |
|
1470 memcpy(prevtags, seltags, sizeof seltags); |
1470 compileregs(); |
1471 compileregs(); |
1471 |
1472 |
1472 /* init appearance */ |
1473 /* init appearance */ |
1473 dc.norm[ColBorder] = getcolor(NORMBORDERCOLOR); |
1474 dc.norm[ColBorder] = getcolor(NORMBORDERCOLOR); |
1474 dc.norm[ColBG] = getcolor(NORMBGCOLOR); |
1475 dc.norm[ColBG] = getcolor(NORMBGCOLOR); |
1847 arrange(); |
1848 arrange(); |
1848 } |
1849 } |
1849 |
1850 |
1850 void |
1851 void |
1851 viewprevtag(const char *arg) { |
1852 viewprevtag(const char *arg) { |
1852 static Bool tmptags[sizeof tags / sizeof tags[0]]; |
1853 static Bool tmp[LENGTH(tags)]; |
1853 |
1854 |
1854 memcpy(tmptags, seltags, sizeof seltags); |
1855 memcpy(tmp, seltags, sizeof seltags); |
1855 memcpy(seltags, prevtags, sizeof seltags); |
1856 memcpy(seltags, prevtags, sizeof seltags); |
1856 memcpy(prevtags, tmptags, sizeof seltags); |
1857 memcpy(prevtags, tmp, sizeof seltags); |
1857 arrange(); |
1858 arrange(); |
1858 } |
1859 } |
1859 |
1860 |
1860 void |
1861 void |
1861 zoom(const char *arg) { |
1862 zoom(const char *arg) { |