[compiz-ubuntu] Steal patch from https://bugs.launchpad.net/ubuntu/+source/compiz/+bug/1158161 (thanks to qiuwei!)