noport() and killing windows.

karron at KARRON.MED.NYU.EDU karron at KARRON.MED.NYU.EDU
Tue Nov 20 14:20:58 AEST 1990


This is my observation of some window behavior that should be fixed.

It is not a problem, but if you guys did this in the window system, then
we applications people would not have to do odd things or
add code to make up for these properties.

1) Killing secondary windows spawned from a noport() window.

If you hit the zap icon in the upper right corner of the 4sight standard
window, the actual parent process that spawned the window will not be killed
until you kill the parent window.

My problem is that my main loop and process is a noport window, and the
other windows are all child windows. There is no way to kill the parent
process from the zap icons if the parent process forks. You have to do a
killall or kill.

The solution should be that if you kill the last drawn window, in any order,
then the parent process should be killed, even if it does not have a window.

I would like not to have an exit button on my window widgits. If I could
reliably expect the zap icon to do it for me, that would make my application
menus that much less cluttered with buttons.


2) REDRAW event should be queued when the window opens. I queue a REDRAW
event, and I know the size of my windows I setup so there is no reason to
deal with a resized window on winopen. It would eliminate a line of application
code if I could expect an initial window opening to queue a REDRAW.

Otherwise, I am relatively content. You might want to keep this in mind for
the next rewrite of 4Sight in X.


+-----------------------------------------------------------------------------+
| karron at nyu.edu (mail alias that will always find me)                        |
|                                         Dan Karron                          |
| . . . . . . . . . . . . . .             New York University Medical Center  |
| 560 First Avenue           \ \    Pager <1> (212) 397 9330                  |
| New York, New York 10016    \**\        <2> 10896   <3> <your-number-here>  |
| (212) 340 5210               \**\__________________________________________ |
| Please Note : Soon to move to dan at karron.med.nyu.edu 128.122.135.3  (Nov 1 )|
+-----------------------------------------------------------------------------+



More information about the Comp.sys.sgi mailing list