Dirk Luesebrink (crux++at++artcom.de)
Tue, 23 Sep 1997 08:16:40 -0400
thank you for digging in the X mess for all of us.
dirk.
>>> below is quote:
We will then regester the proper X atoms on the window.
Then, you need to recognize the X atoms and process the resulting
X event.
In init of X handlign process:
wm_protocols = XInternAtom(dsp, "WM_PROTOCOLS", 1);
wm_delete_window = XInternAtom(dsp, "WM_DELETE_WINDOW", 1);
In X process event loop:
case ClientMessage:
if ((event.xclient.message_type == wm_protocols) &&
(event.xclient.data.l[0] == wm_delete_window))
{
pfNotify(PFNFY_NOTICE,PFNFY_PRINT,"Window exit !!");
pfExit();
}
break;
=======================================================================
List Archives, FAQ, FTP: http://www.sgi.com/Technology/Performer/
Submissions: info-performer++at++sgi.com
Admin. requests: info-performer-request++at++sgi.com
This archive was generated by hypermail 2.0b2 on Mon Aug 10 1998 - 17:55:58 PDT