summaryrefslogtreecommitdiff
path: root/kanotix-lxde-extra/kanotix-start-compiz
diff options
context:
space:
mode:
Diffstat (limited to 'kanotix-lxde-extra/kanotix-start-compiz')
-rw-r--r--kanotix-lxde-extra/kanotix-start-compiz19
1 files changed, 19 insertions, 0 deletions
diff --git a/kanotix-lxde-extra/kanotix-start-compiz b/kanotix-lxde-extra/kanotix-start-compiz
index 982ea91..f1b35b3 100644
--- a/kanotix-lxde-extra/kanotix-start-compiz
+++ b/kanotix-lxde-extra/kanotix-start-compiz
@@ -27,6 +27,23 @@ active wm = compiz
_EOF_
fi
+# force nocompiz with llvmpipe
+if glxinfo|grep -q llvmpipe; then
+echo "disable compiz on llvmpipe" >&2
+sed -i s/"active wm = compiz"/"active wm = openbox-lxde"/ ~/.config/compiz/fusion-icon
+#cat <<"_EOF_" > ~/.config/compiz/fusion-icon
+#[compiz options]
+#loose binding = false
+#indirect rendering = false
+
+#[window manager]
+#active wm = openbox-lxde
+
+
+#_EOF_
+
+fi
+
if [ -e ~/.nocompiz ]; then
# write openbox-config and start openbox
# keep care we have this config in case fusion-icon is started from
@@ -50,9 +67,11 @@ fi
exit 4
fi
+
# start compiz/openbox choosen from config
if glxinfo|grep -q GLX_EXT_texture_from_pixmap; then
if [ -x /usr/bin/fusion-icon ]; then
+ echo "starte fusion-icon"
fusion-icon >/dev/null 2>&1 & # start and reload windowmanager
else
echo "ERROR fusion-icon not found, starting default" >&2