No getting PFUDEV_WINQUIT event in X pipe window

New Message Reply Date view Thread view Subject view Author view

Nicolas Gauvin (nicolas++at++cae.ca)
Fri, 10 May 1996 20:41:37 -0400


I'm using the various pfu functions to get X events (mouse and keyboard).
Everything works as expected but somehow I cannot get the PFUDEV_WINQUIT
event via pfuGetEvents. I would have expected this event to be returned
when the user double click on the top left button of the window.
I checked the pfutil code and it seems to take care of the DestroyNotify
X event:

case DestroyNotify:
                if ((handlerMask & StructureNotifyMask) && handlerFunc)
                {
                    callUserHandler((unsigned long) dsp, (void*) &event);
                }
                else if (events)
                {
                    events->devQ[events->numDevs] = PFUDEV_WINQUIT;
                    events->devVal[events->numDevs] = 1;
                    events->devCount[PFUDEV_WINQUIT] += 1;
                    events->numDevs++;
                }
                break;

For some reason, I never get this PFUDEV_WINQUIT. I'm using a pfPipeWindow
of type X with a separate X event collecting process (Performer 2.0, IRIX 5.3).
I get all the other events correctly.

Any ideas? I would like to be able to stop my application by double clicking
on the top-left button but I can't because of this.

     ___/ | ___/ Nicolas Gauvin e-mail: nicolas++at++cae.ca
    / / | / Software Developper voice: (514) 341-2000 x2275
   / / | __/ CAE Electronics Ltd. fax: (514) 340-5496
  / ___ | / 8585 Cote De Liesse, P.O. Box 1800
_____/ _/ _| _____/ Saint-Laurent, Quebec, Canada, H4L-4X4


New Message Reply Date view Thread view Subject view Author view

This archive was generated by hypermail 2.0b2 on Mon Aug 10 1998 - 17:52:53 PDT

This message has been cleansed for anti-spam protection. Replace '++at++' in any mail addresses with the '@' symbol.