2001-05-30 23:30:58 -04:00
|
|
|
#! /bin/bash
|
2001-07-04 00:33:31 -04:00
|
|
|
|
2002-01-06 22:26:09 -05:00
|
|
|
if test -z "$XNEST_DISPLAY"; then
|
2003-10-12 02:25:38 -04:00
|
|
|
XNEST_DISPLAY=:8
|
2002-01-06 22:26:09 -05:00
|
|
|
fi
|
|
|
|
|
|
|
|
if test -z "$CLIENT_DISPLAY"; then
|
2003-10-12 02:25:38 -04:00
|
|
|
CLIENT_DISPLAY=:8
|
2002-01-06 22:26:09 -05:00
|
|
|
fi
|
|
|
|
|
Comprehensively rename to Mutter
Code:
All references in the code not related to themes, keybindings, or
GConf were changed from 'metacity' to 'mutter'. This includes, among other
things, strings, comments, the atoms used in the message protocol, and
the envvars used for debugging. The GConf schema file was reduced to
the 3 settings new to mutter.
The overall version was brought up to 2.27 to match current gnome.
Structure:
All files named '*metacity*' were renamed '*mutter*' with appropriate
changes in the automake system. Files removed are
doc/creating_themes, src/themes, doc/metacity-theme.dtd,
metacity.doap. These files will eventually end up in an external
gnome-wm-data module.
Installation location:
On the filesystem the mutter-plugindir was change from
$(libdir)/metacity/plugins/clutter to just $(libdir)/mutter/plugins.
The mutter-plugins.pc.in reflects these changes.
Note:
mutter.desktop.in and mutter-wm.desktop both continue to have
X-GNOME-WMSettingsModule=metacity set. This allows
gnome-control-center to continue using libmetacity.so for
configuration. This is fine since most the general keybindings and wm
settings are being read from /apps/metacity/* in gconf.
2009-06-10 06:29:20 -04:00
|
|
|
if test -z "$MUTTER_DISPLAY"; then
|
|
|
|
export MUTTER_DISPLAY=$CLIENT_DISPLAY
|
2002-11-06 11:00:56 -05:00
|
|
|
fi
|
|
|
|
|
2001-06-03 01:39:43 -04:00
|
|
|
if test -z "$SCREENS"; then
|
2001-06-30 19:17:52 -04:00
|
|
|
SCREENS=1
|
2001-06-03 01:39:43 -04:00
|
|
|
fi
|
2001-06-03 14:33:59 -04:00
|
|
|
|
2002-10-17 12:20:50 -04:00
|
|
|
MAX_SCREEN=`echo $SCREENS-1 | bc`
|
|
|
|
|
2001-06-03 14:33:59 -04:00
|
|
|
if test "$DEBUG" = none; then
|
|
|
|
DEBUG=
|
|
|
|
elif test -z "$DEBUG"; then
|
2001-07-02 21:45:43 -04:00
|
|
|
DEBUG=
|
2001-06-03 14:33:59 -04:00
|
|
|
fi
|
|
|
|
|
2001-06-10 23:24:20 -04:00
|
|
|
if test -z "$CLIENTS"; then
|
|
|
|
CLIENTS=0
|
|
|
|
fi
|
|
|
|
|
2001-07-27 00:22:18 -04:00
|
|
|
if test -z "$SM_CLIENTS"; then
|
|
|
|
SM_CLIENTS=0
|
|
|
|
fi
|
|
|
|
|
2001-08-03 00:20:27 -04:00
|
|
|
if test -n "$EVIL_TEST"; then
|
|
|
|
TEST_CLIENT='./wm-tester/wm-tester --evil'
|
|
|
|
fi
|
|
|
|
|
2001-08-19 21:42:44 -04:00
|
|
|
if test -n "$ICON_TEST"; then
|
|
|
|
TEST_CLIENT='./wm-tester/wm-tester --icon-windows'
|
|
|
|
fi
|
|
|
|
|
2002-02-07 23:44:56 -05:00
|
|
|
if test -n "$DEMO_TEST"; then
|
Comprehensively rename to Mutter
Code:
All references in the code not related to themes, keybindings, or
GConf were changed from 'metacity' to 'mutter'. This includes, among other
things, strings, comments, the atoms used in the message protocol, and
the envvars used for debugging. The GConf schema file was reduced to
the 3 settings new to mutter.
The overall version was brought up to 2.27 to match current gnome.
Structure:
All files named '*metacity*' were renamed '*mutter*' with appropriate
changes in the automake system. Files removed are
doc/creating_themes, src/themes, doc/metacity-theme.dtd,
metacity.doap. These files will eventually end up in an external
gnome-wm-data module.
Installation location:
On the filesystem the mutter-plugindir was change from
$(libdir)/metacity/plugins/clutter to just $(libdir)/mutter/plugins.
The mutter-plugins.pc.in reflects these changes.
Note:
mutter.desktop.in and mutter-wm.desktop both continue to have
X-GNOME-WMSettingsModule=metacity set. This allows
gnome-control-center to continue using libmetacity.so for
configuration. This is fine since most the general keybindings and wm
settings are being read from /apps/metacity/* in gconf.
2009-06-10 06:29:20 -04:00
|
|
|
TEST_CLIENT='./tools/mutter-window-demo'
|
2002-02-07 23:44:56 -05:00
|
|
|
fi
|
|
|
|
|
2002-05-01 12:31:58 -04:00
|
|
|
if test -n "$XINERAMA"; then
|
|
|
|
XINERAMA_FLAGS='+xinerama'
|
|
|
|
fi
|
|
|
|
|
2002-11-12 23:11:52 -05:00
|
|
|
export EF_ALLOW_MALLOC_0=1
|
|
|
|
|
2001-06-11 01:47:51 -04:00
|
|
|
if test -z "$ONLY_WM"; then
|
2002-01-06 22:26:09 -05:00
|
|
|
echo "Launching Xnest"
|
2002-05-01 12:31:58 -04:00
|
|
|
Xnest -ac $XNEST_DISPLAY -scrns $SCREENS -geometry 640x480 -bw 15 $XINERAMA_FLAGS &
|
2001-08-19 02:23:59 -04:00
|
|
|
## usleep 800000
|
|
|
|
sleep 1
|
2001-06-10 23:24:20 -04:00
|
|
|
|
2002-01-06 22:26:09 -05:00
|
|
|
if test -n "$XMON_DIR"; then
|
|
|
|
echo "Launching xmond"
|
2002-11-06 11:00:56 -05:00
|
|
|
$XMON_DIR/xmonui | $XMON_DIR/xmond -server localhost:$XNEST_DISPLAY &
|
|
|
|
sleep 1
|
|
|
|
fi
|
|
|
|
|
|
|
|
if test -n "$XSCOPE_DIR"; then
|
|
|
|
## xscope doesn't like to die when it should, it backgrounds itself
|
|
|
|
killall -9 xscope
|
|
|
|
killall -9 xscope
|
|
|
|
echo "Launching xscope"
|
|
|
|
DISPLAY= $XSCOPE_DIR/xscope -o1 -i28 > xscoped-replies.txt &
|
Comprehensively rename to Mutter
Code:
All references in the code not related to themes, keybindings, or
GConf were changed from 'metacity' to 'mutter'. This includes, among other
things, strings, comments, the atoms used in the message protocol, and
the envvars used for debugging. The GConf schema file was reduced to
the 3 settings new to mutter.
The overall version was brought up to 2.27 to match current gnome.
Structure:
All files named '*metacity*' were renamed '*mutter*' with appropriate
changes in the automake system. Files removed are
doc/creating_themes, src/themes, doc/metacity-theme.dtd,
metacity.doap. These files will eventually end up in an external
gnome-wm-data module.
Installation location:
On the filesystem the mutter-plugindir was change from
$(libdir)/metacity/plugins/clutter to just $(libdir)/mutter/plugins.
The mutter-plugins.pc.in reflects these changes.
Note:
mutter.desktop.in and mutter-wm.desktop both continue to have
X-GNOME-WMSettingsModule=metacity set. This allows
gnome-control-center to continue using libmetacity.so for
configuration. This is fine since most the general keybindings and wm
settings are being read from /apps/metacity/* in gconf.
2009-06-10 06:29:20 -04:00
|
|
|
export MUTTER_DISPLAY=localhost:28
|
2002-01-06 22:26:09 -05:00
|
|
|
sleep 1
|
|
|
|
fi
|
|
|
|
|
|
|
|
echo "Launching clients"
|
2001-08-03 00:20:27 -04:00
|
|
|
if test -n "$TEST_CLIENT"; then
|
2002-10-17 12:20:50 -04:00
|
|
|
for I in `seq 0 $MAX_SCREEN`; do
|
2002-10-16 16:12:24 -04:00
|
|
|
DISPLAY=$CLIENT_DISPLAY.$I $TEST_CLIENT &
|
|
|
|
done
|
2001-08-03 00:20:27 -04:00
|
|
|
fi
|
|
|
|
|
2001-06-11 01:47:51 -04:00
|
|
|
if test $CLIENTS != 0; then
|
|
|
|
for I in `seq 1 $CLIENTS`; do
|
2001-08-19 02:23:59 -04:00
|
|
|
echo "Launching xterm $I"
|
2002-01-06 22:26:09 -05:00
|
|
|
DISPLAY=$CLIENT_DISPLAY xterm -geometry 25x15 &
|
2001-06-11 01:47:51 -04:00
|
|
|
done
|
|
|
|
fi
|
2001-07-27 00:22:18 -04:00
|
|
|
|
|
|
|
if test $SM_CLIENTS != 0; then
|
|
|
|
for I in `seq 1 $SM_CLIENTS`; do
|
2001-08-19 02:23:59 -04:00
|
|
|
echo "Launching gnome-terminal $I"
|
2002-01-06 22:26:09 -05:00
|
|
|
DISPLAY=$CLIENT_DISPLAY gnome-terminal --geometry 25x15 &
|
2001-07-27 00:22:18 -04:00
|
|
|
done
|
|
|
|
fi
|
2002-10-07 19:14:40 -04:00
|
|
|
|
|
|
|
if test -e ~/.Xmodmap; then
|
|
|
|
DISPLAY=$CLIENT_DISPLAY xmodmap ~/.Xmodmap
|
|
|
|
fi
|
2001-06-11 02:39:12 -04:00
|
|
|
|
2001-07-02 21:45:43 -04:00
|
|
|
usleep 50000
|
2001-06-11 01:47:51 -04:00
|
|
|
|
2002-10-17 12:20:50 -04:00
|
|
|
for I in `seq 0 $MAX_SCREEN`; do
|
2002-10-16 16:12:24 -04:00
|
|
|
DISPLAY=$CLIENT_DISPLAY.$I xsetroot -solid royalblue3
|
|
|
|
done
|
2001-06-10 23:24:20 -04:00
|
|
|
fi
|
|
|
|
|
2001-06-11 01:47:51 -04:00
|
|
|
if test -z "$ONLY_SETUP"; then
|
Comprehensively rename to Mutter
Code:
All references in the code not related to themes, keybindings, or
GConf were changed from 'metacity' to 'mutter'. This includes, among other
things, strings, comments, the atoms used in the message protocol, and
the envvars used for debugging. The GConf schema file was reduced to
the 3 settings new to mutter.
The overall version was brought up to 2.27 to match current gnome.
Structure:
All files named '*metacity*' were renamed '*mutter*' with appropriate
changes in the automake system. Files removed are
doc/creating_themes, src/themes, doc/metacity-theme.dtd,
metacity.doap. These files will eventually end up in an external
gnome-wm-data module.
Installation location:
On the filesystem the mutter-plugindir was change from
$(libdir)/metacity/plugins/clutter to just $(libdir)/mutter/plugins.
The mutter-plugins.pc.in reflects these changes.
Note:
mutter.desktop.in and mutter-wm.desktop both continue to have
X-GNOME-WMSettingsModule=metacity set. This allows
gnome-control-center to continue using libmetacity.so for
configuration. This is fine since most the general keybindings and wm
settings are being read from /apps/metacity/* in gconf.
2009-06-10 06:29:20 -04:00
|
|
|
MUTTER_VERBOSE=1 MUTTER_USE_LOGFILE=1 MUTTER_DEBUG_BUTTON_GRABS=1 exec $DEBUG ./mutter $OPTIONS
|
2001-06-11 01:47:51 -04:00
|
|
|
fi
|