[comp.windows.x] mwm

mh5l+@andrew.cmu.edu (Mohammed M. Hakim) (03/08/91)

I recently switched from the DEC window maneger to motif on a DEC 5000.
Everything seems to be working fine except for two things:
      1. No root menu! I can not get it up on the screen. Is this
possibly because I have the session manager running?
      2. When i log in, I get an error message having to do with the
depth of some icon (1 or 0). Is this related to the previous problem?

Any help is highly appreciated

harkcom@spinach.pa.yokogawa.co.jp (Alton Harkcom) (04/18/91)

   Again I must ask the world for an answer which should have been (and
maybe is) obvious.

   I am using mwm (not by choice I GUARANTEE YA) and trying to organize
my icons. I use several machines remotely and use X clients from them
on my display. I've color coded the backgrounds of the windows so that I
can just look at it and know which machine it is on. For icons, I use an
image which indicates which client it is and I am trying to get the
iconImageBackground color to match the window background color. For most
clients, I just use the '-name wheat' option to give them a name which I
can use in .Xdefaults to set the resource:

  Mxm*XTerm*iconImage:			terminal.xbm
  Mxm*wheat*iconImageBackground:	wheat
  Mxm*tahiti*iconImageBackground:	tan

So that I can get a wheat background and an terminal icon for a terminal
emulator on machine 'wheat', and the same icon with a tan background
on 'tahiti'.

   This works fine for clients that use -name, but for clients that don't,
I'm stuck. Particularily emacs doesn't work this way. I've tried setting
the '-in name' & '-wn name' options on emacs, but mwm still uses 'emacs'
instead of 'name' when determining the icon image background. Is there
any way to force mwm to use the icon name assigned with '-in'? Is there
any way at all to accomplish setting a name to be used?

Al

aw@jello.bae.bellcore.com (Andrew Wason) (04/18/91)

In article <HARKCOM.91Apr18123317@spinach.pa.yokogawa.co.jp>, harkcom@spinach.pa.yokogawa.co.jp (Alton Harkcom) writes:
> 
>    This works fine for clients that use -name, but for clients that don't,
> I'm stuck. Particularily emacs doesn't work this way. I've tried setting
> the '-in name' & '-wn name' options on emacs, but mwm still uses 'emacs'
> instead of 'name' when determining the icon image background. Is there
> any way to force mwm to use the icon name assigned with '-in'? Is there
> any way at all to accomplish setting a name to be used?


From the man page:

     Emacs can be started with the following X switches:

     -rn name
             Specifies the program name which should be used when
             looking up defaults in the user's X resources.  This
             must be the first option specified  in  the  command
             line.

Andrew

_______________________________________________________________________________

Andrew Wason                                       Bell Communications Research
aw@bae.bellcore.com                                Piscataway, NJ
bellcore!bae!aw

harkcom@spinach.pa.yokogawa.co.jp (Alton Harkcom) (04/22/91)

In article <1991Apr18.143841.19663@bellcore.bellcore.com>
   aw@jello.bae.bellcore.com (Andrew Wason) writes:

 =}From the man page:
 =}
 =}	Emacs can be started with the following X switches:
 =}
 =}	-rn name

   Thank you for the information. Our man page doesn't list the -rn, -in
or -wn options. The -rn option works fine on all of the machines I access
though.

   Anybody got a general solution which can be used for other clients
without such options?

Al