--- alx-src/trunk/alxconfig-ng/functions/config_x11.sh 2007/06/28 12:49:33 378 +++ alx-src/trunk/alxconfig-ng/functions/config_x11.sh 2008/04/14 13:28:59 379 @@ -1,4 +1,4 @@ -# $Header: /home/cvsd/alx-cvs/alx-src/alxconfig-ng/functions/config_x11.sh,v 1.9 2005-10-09 21:31:54 niro Exp $ +# $Header: /home/cvsd/alx-cvs/alx-src/alxconfig-ng/functions/config_x11.sh,v 1.10 2008-04-14 13:28:38 niro Exp $ # configures the x11 server on the host via mysql db settings get_x11_settings() @@ -66,6 +66,11 @@ # which input devices are we using ? ALX_MOUSE=$(mysqldo "select mouse from cfg_input where serial='${ALX_SERIAL}'") export ALX_MOUSE + + ALX_MOUSE_ACCELERATION=$(mysqldo "select mouse_acceleration from cfg_input where serial='${ALX_SERIAL}'") + ALX_MOUSE_THRESHOLD=$(mysqldo "select mouse_threshold from cfg_input where serial='${ALX_SERIAL}'") + export ALX_MOUSE_ACCELERATION + export ALX_MOUSE_THRESHOLD } config_x11() @@ -334,7 +339,7 @@ # load vnc keyboard && mouse if [[ ${HAS_VNC} = yes ]] - then + then echo ' InputDevice "vncMouse" "ExtraPointer"' >> ${xfconfig} echo ' InputDevice "vncKeyboard" "ExtraKeyboard"' >> ${xfconfig} fi @@ -346,5 +351,8 @@ echo '# Section "DRI"' >> ${xfconfig} echo '# Mode 0666' >> ${xfconfig} echo '# EndSection' >> ${xfconfig} + + echo "ALX_MOUSE_ACCELERATION=\"${ALX_MOUSE_ACCELERATION}\"" > ${SETTINGSPATH}/mouse + echo "ALX_MOUSE_THRESHOLD=\"${ALX_MOUSE_THRESHOLD}\"" >> ${SETTINGSPATH}/mouse }