File bug-469785-disable-loose-binding.diff of Package compiz-manager

From 06ca70fc7f823e232eec8834451cbfde081fb09f Mon Sep 17 00:00:00 2001
From: Kristian Lyngstol <kristian@bohemians.org>
Date: Sat, 27 Oct 2007 16:00:35 +0000
Subject: Don't use --loose-binding on nVidia with INDIRECT=yes

---
Index: compiz-manager-0.6.0/compiz-manager
===================================================================
--- compiz-manager-0.6.0.orig/compiz-manager
+++ compiz-manager-0.6.0/compiz-manager
@@ -317,11 +317,13 @@ build_env()
 
 build_args()
 {
-	if [ $INDIRECT = "yes" ]; then
+	if [ "x$INDIRECT" = "xyes" ]; then
 		COMPIZ_OPTIONS="$COMPIZ_OPTIONS --indirect-rendering "
 	fi
 	if check_nvidia; then
-		COMPIZ_OPTIONS="$COMPIZ_OPTIONS --loose-binding"
+		if [ "x$INDIRECT" != "xyes" ]; then
+			COMPIZ_OPTIONS="$COMPIZ_OPTIONS --loose-binding"
+		fi
 	fi
 }