summaryrefslogtreecommitdiff
path: root/src/compositor
diff options
context:
space:
mode:
authorRobert David <[email protected]>2014-03-10 13:17:56 +0100
committerinfirit <[email protected]>2014-06-25 11:31:14 +0200
commit046dabb3993219c7b1d1c91aad20d49e678ba70b (patch)
tree24c70e20370f4adb8336c16077cddfbd16693492 /src/compositor
parent2b74916f3405603ef858815bb943ca0f97320608 (diff)
downloadmarco-046dabb3993219c7b1d1c91aad20d49e678ba70b.tar.bz2
marco-046dabb3993219c7b1d1c91aad20d49e678ba70b.tar.xz
src/core/main.c sys/wait.h fix
Diffstat (limited to 'src/compositor')
-rw-r--r--src/compositor/compositor-xrender.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/compositor/compositor-xrender.c b/src/compositor/compositor-xrender.c
index 805002e3..6294e9d7 100644
--- a/src/compositor/compositor-xrender.c
+++ b/src/compositor/compositor-xrender.c
@@ -1821,6 +1821,10 @@ add_win (MetaScreen *screen,
if (xwindow == info->output)
return;
+
+ /* If already added, ignore */
+ if (find_window_for_screen (screen, xwindow) != NULL)
+ return;
cw = g_new0 (MetaCompWindow, 1);
cw->screen = screen;