File compiz-manager-sm-client-id.patch of Package compiz-manager

From 223180bf74e057e353d83f82219ab201e34627f3 Mon Sep 17 00:00:00 2001
From: Kristian Lyngstol <kristian@linpro.no>
Date: Thu, 20 Nov 2008 08:40:42 +0000
Subject: Set sm-client-id to DESKTOP_AUTOSTART_ID when present.

---
diff --git a/compiz-manager b/compiz-manager
index 22c6787..91605c0 100755
--- a/compiz-manager
+++ b/compiz-manager
@@ -318,6 +318,9 @@ build_args()
 	if [ "x$INDIRECT" = "xyes" ]; then
 		COMPIZ_OPTIONS="$COMPIZ_OPTIONS --indirect-rendering "
 	fi
+	if [ ! -z "$DESKTOP_AUTOSTART_ID" ]; then
+		COMPIZ_OPTIONS="$COMPIZ_OPTIONS --sm-client-id $DESKTOP_AUTOSTART_ID"
+	fi
 	if check_nvidia; then
 		if [ "x$INDIRECT" != "xyes" ]; then
 			COMPIZ_OPTIONS="$COMPIZ_OPTIONS --loose-binding"
@@ -384,6 +387,7 @@ build_args
 
 if [ "x$CM_DRY" = "xyes" ]; then
 	verbose "Dry run finished: everything should work with regards to Compiz and 3D.\n"
+	verbose "Execute: ${COMPIZ_BIN_PATH}${COMPIZ_NAME} $COMPIZ_OPTIONS "$@" $COMPIZ_PLUGINS \n"
 	exit 0;
 fi
 # start the gtk-window-decorator if present
--
cgit v0.8.3.1-30-gff3a