summaryrefslogtreecommitdiff
path: root/src/compositor
diff options
context:
space:
mode:
authorSander Sweers <[email protected]>2014-06-16 22:48:15 +0200
committerSander Sweers <[email protected]>2014-06-16 22:48:15 +0200
commit897defba089400c910a520ca1302ca5573d3f1d7 (patch)
tree437d1884cb6b430568b2a842aaf1907bafe34116 /src/compositor
parent86de83b061a4ff0901e563db3671180c79abf007 (diff)
parent064f1ff4d56da2d0fc6b9cce674c667c5d3c7ec4 (diff)
downloadmarco-897defba089400c910a520ca1302ca5573d3f1d7.tar.bz2
marco-897defba089400c910a520ca1302ca5573d3f1d7.tar.xz
Merge pull request #107 from hordepfo/compositor-disappear-fix
Possible fix for disappearing panels and windows
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;