summaryrefslogtreecommitdiff
path: root/src/run-metacity.sh
diff options
context:
space:
mode:
Diffstat (limited to 'src/run-metacity.sh')
-rwxr-xr-xsrc/run-metacity.sh28
1 files changed, 22 insertions, 6 deletions
diff --git a/src/run-metacity.sh b/src/run-metacity.sh
index 30d7280..e1485ce 100755
--- a/src/run-metacity.sh
+++ b/src/run-metacity.sh
@@ -1,5 +1,13 @@
#! /bin/bash
+if test -z "$XNEST_DISPLAY"; then
+ XNEST_DISPLAY=:1
+fi
+
+if test -z "$CLIENT_DISPLAY"; then
+ CLIENT_DISPLAY=:1
+fi
+
if test -z "$SCREENS"; then
SCREENS=1
fi
@@ -27,33 +35,41 @@ if test -n "$ICON_TEST"; then
fi
if test -z "$ONLY_WM"; then
- Xnest -ac :1 -scrns $SCREENS -geometry 640x480 -bw 15 &
+ echo "Launching Xnest"
+ Xnest -ac $XNEST_DISPLAY -scrns $SCREENS -geometry 640x480 -bw 15 &
## usleep 800000
sleep 1
+ if test -n "$XMON_DIR"; then
+ echo "Launching xmond"
+ $XMON_DIR/xmonui | $XMON_DIR/xmond -server $XNEST_DISPLAY &
+ sleep 1
+ fi
+
+ echo "Launching clients"
if test -n "$TEST_CLIENT"; then
- DISPLAY=:1 $TEST_CLIENT &
+ DISPLAY=$CLIENT_DISPLAY $TEST_CLIENT &
fi
if test $CLIENTS != 0; then
for I in `seq 1 $CLIENTS`; do
echo "Launching xterm $I"
- DISPLAY=:1 xterm -geometry 25x15 &
+ DISPLAY=$CLIENT_DISPLAY xterm -geometry 25x15 &
done
fi
if test $SM_CLIENTS != 0; then
for I in `seq 1 $SM_CLIENTS`; do
echo "Launching gnome-terminal $I"
- DISPLAY=:1 gnome-terminal --geometry 25x15 &
+ DISPLAY=$CLIENT_DISPLAY gnome-terminal --geometry 25x15 &
done
fi
usleep 50000
- DISPLAY=:1 xsetroot -solid royalblue3
+ DISPLAY=$CLIENT_DISPLAY xsetroot -solid royalblue3
fi
if test -z "$ONLY_SETUP"; then
- METACITY_DEBUG_BUTTON_GRABS=1 METACITY_DISPLAY=:1 exec libtool --mode=execute $DEBUG ./metacity $OPTIONS
+ METACITY_DEBUG_BUTTON_GRABS=1 METACITY_DISPLAY=$CLIENT_DISPLAY exec libtool --mode=execute $DEBUG ./metacity $OPTIONS
fi