diff options
author | Anselm R.Garbe <arg@10ksloc.org> | 2006-08-14 10:49:22 +0200 |
---|---|---|
committer | Anselm R.Garbe <arg@10ksloc.org> | 2006-08-14 10:49:22 +0200 |
commit | 2c0d1cc87bf084ed3f1cdb4be881fb4f64f5773a (patch) | |
tree | a4a21bf2ff4747b0b86a979ea765f769705f6968 | |
parent | 375a251d16de567b6c62cce208f388cd16e0ce0f (diff) | |
download | dwm-2c0d1cc87bf084ed3f1cdb4be881fb4f64f5773a.tar.gz dwm-2c0d1cc87bf084ed3f1cdb4be881fb4f64f5773a.tar.bz2 dwm-2c0d1cc87bf084ed3f1cdb4be881fb4f64f5773a.zip |
fixed a core dump
-rw-r--r-- | client.c | 1 | ||||
-rw-r--r-- | tag.c | 6 |
2 files changed, 4 insertions, 3 deletions
@@ -52,7 +52,6 @@ focus(Client *c) if (!issel) return; Client *old = sel; - XEvent ev; sel = c; if(old && old != c) @@ -211,8 +211,10 @@ restack() else m++; } - - n = 2 * (f + m); + if(!(n = 2 * (f + m))) { + drawstatus(); + return; + } if(nwins < n) { nwins = n; wins = erealloc(wins, nwins * sizeof(Window)); |