stefan++at++linux.f1.fhtw-berlin.de
Mon, 27 Oct 1997 21:39:37 +0100
>This is an X thing. You can turn it on with > pfPWinMode(Shared->pw, PFWIN_EXIT, 1);
>
>We will then register 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;
I finally found the according man page under pfWindow (last example)
where this apparently was taken from. First I really didn't know how to
request the xevents. So I found out that XNextEvent does it. But the
resulting problem was that all the other events especially those of the
pfiTDXformer couldn't be handled anymore. Then I tried
XCheckTypedEvent(dsp, ClientMessage, &event) and it worked ! All my
pfPipeWindow's can now be closed as any other XWindow on the IRIS system
(Alt-F4, Alt-F12 and doubleklicking the upper left corner).
Thanks for your quick and qualified answer once again, Sharon.
_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/
_/ Stefan Jahn _/
_/ Student an der Fachhochschule fuer Technik und Wirtschaft _/
_/ fon: 049-030-4491702 _/
_/ email: stefan++at++linux.f1.fhtw-berlin.de _/
_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/
=======================================================================
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:56:08 PDT