[compiz] fix compiz-decorator-emerald

Wolfgang Ulbrich raveit65 at fedoraproject.org
Mon Jun 3 12:59:36 UTC 2013


commit 9b6a1761570eb349eccaa6fb969f3d4ff106ec33
Author: raveit <chat-to-me at raveit.de>
Date:   Mon Jun 3 14:58:55 2013 +0200

    fix compiz-decorator-emerald

 compiz-decorator-emerald |   23 +++++++----------------
 1 files changed, 7 insertions(+), 16 deletions(-)
---
diff --git a/compiz-decorator-emerald b/compiz-decorator-emerald
index 0ecc999..129a053 100755
--- a/compiz-decorator-emerald
+++ b/compiz-decorator-emerald
@@ -1,24 +1,15 @@
 #!/bin/bash
 
-function runEmerald() {
-    emerald --replace $@
-}
+compiz=`ps ax | grep 'compiz --replace' | grep -v 'grep' | awk '{print $5}'`
 
-ISSW=`glxinfo | grep "Software Rasterizer" -c`
 
-# Try with direct rendering
-HAVETFP=`glxinfo | grep texture_from_pixmap -c`
 
-if ( [ $ISSW == 0 ] && [ $HAVETFP -gt 2 ] ); then 
-	runCompiz $@
+if [ "$compiz" = "compiz" ] ; then
+	emerald --replace &
+	echo "$compiz with Emerald windows-decorator"
+	else
+	exit 0
 fi
 
-# Try again with indirect rendering
-export LIBGL_ALWAYS_INDIRECT=1
-
-HAVETFP=`glxinfo | grep texture_from_pixmap -c`
-
-if ( [ $ISSW == 0 ] && [ $HAVETFP -gt 2 ] ); then 
-	runEmerald $@
-fi
+exit 0
 


More information about the scm-commits mailing list