Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!samsung!think.com!mintaka!bloom-beacon!dont-send-mail-to-path-lines From: smarks@eng.sun.COM (Stuart Marks) Newsgroups: comp.windows.x Subject: Re: olwm *exiting* problems Message-ID: <9101292154.AA15362@trantor.Eng.Sun.COM> Date: 29 Jan 91 21:54:23 GMT References: <"29-Jan-91.13:39:30.EST".*.Nagesh_Pabbisetty.Henr801C@Xerox.com> Sender: daemon@athena.mit.edu (Mr Background) Organization: The Internet Lines: 41 Nagesh_Pabbisetty.Henr801C@xerox.com writes: 1. When I select the "exit" item in olwm's menu, it kills all the clients on the desktop and the X server! Is there any way that I can have "exit" menu item to just kill olwm without affecting other clients? Yes. The following line adds a menu item that does what you want: "Exit Window Manager" WMEXIT This causes olwm to exit without killing all the applications on the desktop. Add this line to your .openwin-menu customization file. If you don't have a .openwin-menu file, you can copy the system default menu file from somewhere, probably $OPENWINHOME/lib/openwin-menu. (Why does olwm kill all the clients in the first place? Well, think of "exit" as "logout". Most users login and logout more often than they switch window managers. If you need to switch window managers, that's what the WMEXIT menu command is for.) 2. I have set OpenWindows.FocusLenience to true. When I do a ps, find the pid for olwm and kill it, it takes the window focus along with it!! I cant go into any xterm window and type "twm" to start twm... I could start olwm with the "f" flag, but is there a way to have olwm behave in a more user-friendly manner when it exits? FocusLenience or "olwm -f" shouldn't have anything to do with this. What signal are you using to kill olwm? If you use an uncatchable signal, like kill -9 (KILL), olwm cannot clean up after itself. As you've noticed, the focus gets left in an unusable state. If you kill olwm with one of the signals it catches (HUP, INT, TERM), it will leave things in a reasonable state. s'marks Stuart W. Marks ARPA: smarks@eng.sun.com Windows & Graphics Software UUCP: sun!smarks Sun Microsystems, Inc.