Comment 25 for bug 197209

@Mike Phillips: It's all hacks, since we're working around a bug. The alternative hack is to kill compiz directly and then re-start it in whichever way it was launched. I wasn't sure how well the windows would be restored in that case, so I felt more comfortable replacing it with another window manager. However, the metacity --replace technique will end up squishing allt he windows onto one desktop/workspace, so the technique of killing compiz is still worth trying. I've attached some code in progress that identifies the process that launched compiz and could thus re-invoke its command line in case you want to play with it or try to make it work for real. I was planning to combine that with some of the code above for my "real" solution. It's still invoking metacity in most cases but there's a case for killing compiz in there too.