SUMMARY: mulitple window managers

From: Barnes William (
Date: Mon May 09 1994 - 07:45:03 CDT

Thanks to those that responded. The way I usually brought up dual screens with one window manager was to go: /usr/openwin/bin/openwin -dev /dev/cgsix1 -dev /dev/cgsix0. So originally I thought that I could modify my .xinitrc and have olwm startup with -display :0.0 and mwm with -display :0.1. This did not work, because the window managers, now by default, take all windows that are available. The fix was through an option that was mentioned in the man pages for olwm but was missing in the man pages for
mwm (-single).

Finally, what worked was:

Modified .xinitrc to do the following:

# SunView binary compatibility is default mode.
[ -z "$NOSUNVIEW" -o "$NOSUNVIEW" -ne 1 ] && eval `svenv -env`

mwm -display :0.0 -single &
sleep 15 & pid=$! # OpenLook Window Manager
olwm -display :0.1 -single -syncpid $pid &
wait $pid # Pause until olwm inits

if [ -x $HOME/.openwin-init ]; then

Then starting up the windows with the following command:
/usr/openwin/bin/openwin -dev /dev/cgsix1 -dev /dev/cgsix0

Many thanks to:
Brian Decker <> (Birger A. Wathne) (Garrett D'Amore) (Perry Hutchison)

----- Begin Included Message -----

>From Fri May 6 09:37:18 1994
Date: Thu, 5 May 94 11:50:05 EDT
From: (Barnes William)
Subject: mulitple window managers

I have a weird question that I hope one of you wizzards with X will be able to help me with.

I have a Sparc20 running Solaris 2.3 with 2 GX boards, 2 monitors, 1 keyboard and 1 mouse. I have been asked to set this up so that the Openlook Window Manager (olwm) takes one screen and the Motif Window Manager (mwm) takes the other screen. I have setup systems before with dual screens, but with only one window manager. In this situation, the only thing that I have been able to see that comes close to working is to run 2 Xsun (Xservers), each with thier own display (:0 - /dev/cgsix0 and :1 - /dev/cgsi
x1) and each with a different window manager. To run this I execute the following:

xinit /usr/openwin/bin/olwm -- /usr/openwin/bin/Xsun :0 -dev /dev/cgsix0 &
xinit /opt/SUNWmotif/bin/mwm -- /usr/openwin/bin/Xsun :1 -dev /dev/cgsix1 &

This will bring up the different window managers on each screen, but they seem to be fighting for the keyboard and mouse. My nearest guess is that they are using the same port for keyboard and mouse input, so sometimes, my focus is in the OLWM display and sometimes it is in the MWM display. Does anyone know of a way to take care of this situation. I would expect that I would have to define the communication ports somehow, and then run a program to switch the keyboard and mouse to the other screen.

Thanks in advance.
Bill Barnes
Sr Systems Analyst
Martin Marietta
King Of Prussia, PA 19604

----- End Included Message -----

This archive was generated by hypermail 2.1.2 : Fri Sep 28 2001 - 23:09:00 CDT