[comp.windows.x.motif] Is there a function call to restart mwm?

slt@unislc.UUCP (Stuart Timm) (08/16/90)

One of our software engineers is working on developing a motif-based
client that will allow a user to alter his/her resources.  Some of
these resources are Mwm resources and can only take effect by restarting
the window manager.  

He was wondering if there is a function call to do this.  We still want
to be able to restart Mwm manually by selecting the f.restart option from
the default root menu.

Is this possible?

Thanks in advance!

Stuart L. Timm
Unisys Corporation
Salt Lake City, Utah
hellgate.utah.edu!uplherc!unislc!slt

mike@raven.uss.tek.com (Mike Ewan) (08/23/90)

Here's the menu entry I use:

" Mwm restart"         f.restart

Mike
--
 Michael Ewan    (503)627-6468      Internet:  mike@raven.USS.TEK.COM
 Unix Systems Support                   UUCP:  ...!tektronix!puffin!raven!mike
 Tektronix, Inc.                  Compuserve:  73747,2304
"Fig Newton: The force required to accelerate a fig 39.37 inches/sec."--J. Hart

klee@wsl.dec.com (Ken Lee) (08/24/90)

In article <9008152139.AA11945@unislc.UUCP>, slt@unislc.UUCP (Stuart Timm)
writes:
|> 
|> One of our software engineers is working on developing a motif-based
|> client that will allow a user to alter his/her resources.  Some of
|> these resources are Mwm resources and can only take effect by restarting
|> the window manager.  
|> 
|> He was wondering if there is a function call to do this. 

I take it you mean that you want to restart mwm by calling some
function in another client.  Aside from "kill", I don't think there is
anything like that.

Ken Lee
DEC Western Software Laboratory, Palo Alto, Calif.
Internet: klee@wsl.dec.com
uucp: uunet!decwrl!klee

dbrooks@osf.osf.org (David Brooks) (08/24/90)

In article <9008152139.AA11945@unislc.UUCP> slt@unislc.UUCP (Stuart Timm) writes:
>
>One of our software engineers is working on developing a motif-based
>client that will allow a user to alter his/her resources.  Some of
>these resources are Mwm resources and can only take effect by restarting
>the window manager.  
>
>He was wondering if there is a function call to do this.  We still want
>to be able to restart Mwm manually by selecting the f.restart option from
>the default root menu.

We thought of two ways to call this (sorry, Stuart, you already heard
this; nothing new).

Gross hack: it's quite easy to write a shell line that will kill the
current mwm and start another incarnation, and bang it out using
system(3).  That's no more overhead than an f.restart.  It does depend
on your being permitted to do the kill.

Neato X idea: I thought of setting up mwm with something obscure, such
as Ctrl<Btn5Down>, bound to f.restart.  Then you use XSendEvent to
send the event to the root window.  But, so far, I couldn't get it to
work -- mwm isn't getting the synthetic event.  Probably I'm
programming it awry.


-- 
David Brooks			dbrooks@osf.org
Systems Engineering, OSF	uunet!osf.org!dbrooks