diff -r b61ffb85f691 -r dc37f0e022f7 dwm.c --- a/dwm.c Sat Dec 08 19:59:51 2007 +0100 +++ b/dwm.c Sat Dec 08 20:11:56 2007 +0100 @@ -161,6 +161,7 @@ Client *nexttiled(Client *c); void propertynotify(XEvent *e); void quit(const char *arg); +void reapply(const char *arg); void resize(Client *c, int x, int y, int w, int h, Bool sizehints); void resizemouse(Client *c); void restack(void); @@ -1159,6 +1160,17 @@ readin = running = False; } +void +reapply(const char *arg) { + static Bool zerotags[LENGTH(tags)] = { 0 }; + Client *c; + + for(c = clients; c; c = c->next) { + memcpy(c->tags, zerotags, sizeof zerotags); + applyrules(c); + } + arrange(); +} void resize(Client *c, int x, int y, int w, int h, Bool sizehints) {