add richardgv's patch. see #31.
This commit is contained in:
parent
94efff0bb2
commit
02e2deea54
|
@ -1578,6 +1578,11 @@ add_win(Display *dpy, Window id, Window prev, Bool override_redirect) {
|
|||
|
||||
if (!new) return;
|
||||
|
||||
if (find_win(dpy, id)) {
|
||||
free(new);
|
||||
return;
|
||||
}
|
||||
|
||||
if (prev) {
|
||||
for (p = &list; *p; p = &(*p)->next) {
|
||||
if ((*p)->id == prev && !(*p)->destroyed)
|
||||
|
|
Loading…
Reference in New Issue