diff options
author | Anselm R. Garbe <garbeam@gmail.com> | 2007-12-08 20:11:56 +0100 |
---|---|---|
committer | Anselm R. Garbe <garbeam@gmail.com> | 2007-12-08 20:11:56 +0100 |
commit | d66ad1457e6b1e3fc18c01767fdb499acaef3c8e (patch) | |
tree | 1b8f5d8ccda22f343d402159211b1b900e6f95e8 /dwm.c | |
parent | 8497f9f78195d386c7b50bc5105641a5c3f78554 (diff) | |
download | dwm-d66ad1457e6b1e3fc18c01767fdb499acaef3c8e.tar.gz dwm-d66ad1457e6b1e3fc18c01767fdb499acaef3c8e.tar.bz2 dwm-d66ad1457e6b1e3fc18c01767fdb499acaef3c8e.zip |
implemented reapply for re-applying the tagging rules during runtime, Mod-r
Diffstat (limited to 'dwm.c')
-rw-r--r-- | dwm.c | 12 |
1 files changed, 12 insertions, 0 deletions
@@ -161,6 +161,7 @@ void movemouse(Client *c); 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 @@ quit(const char *arg) { 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) { |