fixed a core dump
This commit is contained in:
parent
375a251d16
commit
2c0d1cc87b
2 changed files with 4 additions and 3 deletions
1
client.c
1
client.c
|
@ -52,7 +52,6 @@ focus(Client *c)
|
||||||
if (!issel)
|
if (!issel)
|
||||||
return;
|
return;
|
||||||
Client *old = sel;
|
Client *old = sel;
|
||||||
XEvent ev;
|
|
||||||
|
|
||||||
sel = c;
|
sel = c;
|
||||||
if(old && old != c)
|
if(old && old != c)
|
||||||
|
|
6
tag.c
6
tag.c
|
@ -211,8 +211,10 @@ restack()
|
||||||
else
|
else
|
||||||
m++;
|
m++;
|
||||||
}
|
}
|
||||||
|
if(!(n = 2 * (f + m))) {
|
||||||
n = 2 * (f + m);
|
drawstatus();
|
||||||
|
return;
|
||||||
|
}
|
||||||
if(nwins < n) {
|
if(nwins < n) {
|
||||||
nwins = n;
|
nwins = n;
|
||||||
wins = erealloc(wins, nwins * sizeof(Window));
|
wins = erealloc(wins, nwins * sizeof(Window));
|
||||||
|
|
Loading…
Reference in a new issue