hecht@excalibur.tn.cornell.EDU (Caroline Hecht) (02/01/91)
Using mwm, if I click on the square in the upper left of the window border to get a menu, and then click on the "close" button, the application exits, and another window on the display gets the focus again. This is apparent because the border is highlighted. However, with some applications (especially some I write), this isn't true, and I'm left with NO window selected, until I click in some window. Question: What can I do to ensure that the focus is returned to the previously selected window upon exiting an application? Is this something I do in the application, or something I have to tell mwm? Another Question: Is there something I can do so that immediately after invoking an application, the focus is taken away from it? For example, you might want to do this when invoking xclock, although it's not too important. (I'm more interested in doing it for an application which just has a single pushbutton, which, when pushed, performs a function and exits the program. Because hitting return is equivalent to pushing the button, if the user runs the program but forgets to click in another window before hitting return, s/he exits the program that was just invoked.) Thanks for any insights. Caroline Hecht Cornell National Supercomputer Facility cgh@cornellf.tn.cornell.edu (Ignore addresses in header) (607) 254-8686