This should also stop xterms and the like getting in before E does and
ending up in the wrong places as a result.
-start-window-manager () {
+ win=nil
+ for i in $(seq 10); do
+ if eesh version >/dev/null 2>&1; then
+ win=t
+ break
+ fi
+ sleep 1
+ done
+ case $win in
+ t)
+ info "$wm started ok"
+ run init xsetroot -cursor_name left_ptr
+ ;;
+ nil)
+ info "$wm failed to start!"
+ ;;
+ esac
+}
+
+start-window-manager () {
+ case $(type -t start-$wm || echo "not-found") in
+ function)
+ start-$wm $wmopts
+ ;;
+ *)
+ run bginit $wm $wmopts
+ ;;
+ esac
}
###--------------------------------------------------------------------------
}
###--------------------------------------------------------------------------