diff options
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); | |||
| 161 | Client *nexttiled(Client *c); | 161 | Client *nexttiled(Client *c); |
| 162 | void propertynotify(XEvent *e); | 162 | void propertynotify(XEvent *e); |
| 163 | void quit(const char *arg); | 163 | void quit(const char *arg); |
| 164 | void reapply(const char *arg); | ||
| 164 | void resize(Client *c, int x, int y, int w, int h, Bool sizehints); | 165 | void resize(Client *c, int x, int y, int w, int h, Bool sizehints); |
| 165 | void resizemouse(Client *c); | 166 | void resizemouse(Client *c); |
| 166 | void restack(void); | 167 | void restack(void); |
| @@ -1159,6 +1160,17 @@ quit(const char *arg) { | |||
| 1159 | readin = running = False; | 1160 | readin = running = False; |
| 1160 | } | 1161 | } |
| 1161 | 1162 | ||
| 1163 | void | ||
| 1164 | reapply(const char *arg) { | ||
| 1165 | static Bool zerotags[LENGTH(tags)] = { 0 }; | ||
| 1166 | Client *c; | ||
| 1167 | |||
| 1168 | for(c = clients; c; c = c->next) { | ||
| 1169 | memcpy(c->tags, zerotags, sizeof zerotags); | ||
| 1170 | applyrules(c); | ||
| 1171 | } | ||
| 1172 | arrange(); | ||
| 1173 | } | ||
| 1162 | 1174 | ||
| 1163 | void | 1175 | void |
| 1164 | resize(Client *c, int x, int y, int w, int h, Bool sizehints) { | 1176 | resize(Client *c, int x, int y, int w, int h, Bool sizehints) { |
