File compiz-manager-fallbackwm.patch of Package compiz-manager

diff -ur a/compiz-manager b/compiz-manager
--- a/compiz-manager	2008-03-13 18:46:12.000000000 +0530
+++ b/compiz-manager	2008-10-04 21:51:17.000000000 +0530
@@ -43,6 +43,7 @@
 GLXINFO="/usr/bin/glxinfo"
 KWIN=`which kwin`
 METACITY="/usr/bin/metacity"
+XFWM="/usr/bin/xfwm"
 COMPIZ_NAME="compiz" # Final name for compiz (compiz.real) 
 FUSION_ICON=`which fusion-icon`
 
@@ -58,11 +59,9 @@
 
 # For detecting what driver is in use, the + is for one or more /'s
 XORG_DRIVER_PATH="/usr/$LIB/xorg/modules/drivers/+"
-
-if [ $DESKTOP_SESSION == "kde" ]; then
-    FALLBACKWM="${KWIN}"
-else
-    FALLBACKWM="${METACITY}"
+if [ x"$KDE_FULL_SESSION" = x"true" ]; then FALLBACKWM="${KWIN}";
+    elif [ x"$GNOME_DESKTOP_SESSION_ID" != x"" ]; then FALLBACKWM="${METACITY}";
+    elif xprop -root _DT_SAVE_MODE | grep ' = \"xfce4\"$' >/dev/null 2>&1; then FALLBACKWM="${XFWM}";
 fi
 
 FALLBACKWM_OPTIONS="--replace $@"
openSUSE Build Service is sponsored by