Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!husc6!paperboy!osf!dbrooks From: dbrooks@osf.osf.org (David Brooks) Newsgroups: comp.windows.x.motif Subject: Re: Is there a function call to restart mwm? Message-ID: <12423@paperboy.OSF.ORG> Date: 24 Aug 90 03:21:26 GMT References: <9008152139.AA11945@unislc.UUCP> Sender: news@OSF.ORG Reply-To: dbrooks@osf.org (David Brooks) Distribution: inet Organization: Open Software Foundation Lines: 29 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, 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