hide random home http://www.sgi.com/tech/openGL/mjk.xlib/subsubsection3_2_5_4.html (Silicon Surf Promotional CD, 01/1995)



Next: 3 Advanced Xlib and Up: 2.5 Event Dispatching Previous: 2.5.3 Handling Input

2.5.4 Quitting

Because the WM_DELETE_WINODW atom was specified on the top-level window's list of window manager protocols, the event loop should also be ready to handle an event sent by the window manager asking the program to quit. If glxdino receives a ClientMessage event with the first data item being the WM_DELETE_WINDOW atom, the program calls exit.

In many IRIS GL demonstration programs, the Escape key is used by convention to quit the program. So glxdino shows a simple means to quit in response to an Escape key press.


mjk@asd.sgi.com
Wed Oct 19 18:11:46 PDT 1994