summaryrefslogtreecommitdiff
path: root/src/run-metacity.sh
diff options
context:
space:
mode:
authorHavoc Pennington <hp@src.gnome.org>2002-10-17 16:20:50 +0000
committerHavoc Pennington <hp@src.gnome.org>2002-10-17 16:20:50 +0000
commit4eb8a93c83228aafeb9a70877992e3214781d404 (patch)
treef35ab0880cc8dbf1eb81c86e1cb6f5bf3831ca16 /src/run-metacity.sh
parent3da0b1c7d9a83d797645f3220bdf893e17e5f7e8 (diff)
downloadmetacity-4eb8a93c83228aafeb9a70877992e3214781d404.tar.gz
metacity-4eb8a93c83228aafeb9a70877992e3214781d404.tar.bz2
debug enhancements
Diffstat (limited to 'src/run-metacity.sh')
-rwxr-xr-xsrc/run-metacity.sh6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/run-metacity.sh b/src/run-metacity.sh
index a1fd82b..8c86111 100755
--- a/src/run-metacity.sh
+++ b/src/run-metacity.sh
@@ -12,6 +12,8 @@ if test -z "$SCREENS"; then
SCREENS=1
fi
+MAX_SCREEN=`echo $SCREENS-1 | bc`
+
if test "$DEBUG" = none; then
DEBUG=
elif test -z "$DEBUG"; then
@@ -56,7 +58,7 @@ if test -z "$ONLY_WM"; then
echo "Launching clients"
if test -n "$TEST_CLIENT"; then
- for I in `seq 0 $SCREENS`; do
+ for I in `seq 0 $MAX_SCREEN`; do
DISPLAY=$CLIENT_DISPLAY.$I $TEST_CLIENT &
done
fi
@@ -81,7 +83,7 @@ if test -z "$ONLY_WM"; then
usleep 50000
- for I in `seq 0 $SCREENS`; do
+ for I in `seq 0 $MAX_SCREEN`; do
DISPLAY=$CLIENT_DISPLAY.$I xsetroot -solid royalblue3
done
fi