fix compiz-decorator-emerald
This commit is contained in:
parent
ec4a8d7221
commit
9b6a176157
|
@ -1,24 +1,15 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
function runEmerald() {
|
compiz=`ps ax | grep 'compiz --replace' | grep -v 'grep' | awk '{print $5}'`
|
||||||
emerald --replace $@
|
|
||||||
}
|
|
||||||
|
|
||||||
ISSW=`glxinfo | grep "Software Rasterizer" -c`
|
|
||||||
|
|
||||||
# Try with direct rendering
|
|
||||||
HAVETFP=`glxinfo | grep texture_from_pixmap -c`
|
|
||||||
|
|
||||||
if ( [ $ISSW == 0 ] && [ $HAVETFP -gt 2 ] ); then
|
if [ "$compiz" = "compiz" ] ; then
|
||||||
runCompiz $@
|
emerald --replace &
|
||||||
|
echo "$compiz with Emerald windows-decorator"
|
||||||
|
else
|
||||||
|
exit 0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Try again with indirect rendering
|
exit 0
|
||||||
export LIBGL_ALWAYS_INDIRECT=1
|
|
||||||
|
|
||||||
HAVETFP=`glxinfo | grep texture_from_pixmap -c`
|
|
||||||
|
|
||||||
if ( [ $ISSW == 0 ] && [ $HAVETFP -gt 2 ] ); then
|
|
||||||
runEmerald $@
|
|
||||||
fi
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue