When I run metacity --replace (of course this completely breaks unity) the problem is solved, so it is indeed something in compiz
When I run metacity --replace (of course this completely breaks unity) the problem is solved, so it is indeed something in compiz