Permalink
Browse files

add richardgv's patch. see #31.

  • Loading branch information...
1 parent 94efff0 commit 02e2deea541e4845a5ce6ed2c042e257bf6922ea @chjj committed Sep 9, 2012
Showing with 5 additions and 0 deletions.
  1. +5 −0 src/compton.c
View
@@ -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)

0 comments on commit 02e2dee

Please sign in to comment.