commit - 83abfc05eb5a1e6ee762ce2921d9d5270e40c9ee
commit + 53cac176928b67db4eb551295291ab09650927eb
blob - dd39fe10e18d4a5982a3508ba3b307c623d23afe
blob + 09f3ae14adbd8179e616a4b514641684c070b67a
--- dwm.c
+++ dwm.c
void
manage(Window w, XWindowAttributes *wa) {
+ static Client cz;
Client *c, *t = NULL;
Window trans = None;
XWindowChanges wc;
- if(!(c = calloc(1, sizeof(Client))))
- die("fatal: could not calloc() %u bytes\n", sizeof(Client));
+ if(!(c = malloc(sizeof(Client))))
+ die("fatal: could not malloc() %u bytes\n", sizeof(Client));
+ *c = cz;
c->win = w;
/* geometry */