From 02e2deea541e4845a5ce6ed2c042e257bf6922ea Mon Sep 17 00:00:00 2001 From: Christopher Jeffrey Date: Sat, 8 Sep 2012 21:04:44 -0500 Subject: [PATCH] add richardgv's patch. see #31. --- src/compton.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/compton.c b/src/compton.c index b81117d..0211748 100644 --- a/src/compton.c +++ b/src/compton.c @@ -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)