home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.windows.x
- Path: sparky!uunet!charon.amdahl.com!pacbell.com!ames!saimiri.primate.wisc.edu!caen!sol.ctr.columbia.edu!ira.uka.de!gmd.de!Germany.EU.net!mcsun!sun4nl!wn1.sci.kun.nl!cs.kun.nl!leonp
- From: leonp@cs.kun.nl (Leon Pillich)
- Subject: Changing focus to a fresh window -> crash!
- Message-ID: <BxBBC6.H9J@sci.kun.nl>
- Sender: news@sci.kun.nl (NUnet News Owner)
- Organization: University of Nijmegen, The Netherlands
- Date: Fri, 6 Nov 1992 20:52:53 GMT
- Lines: 29
-
- n my program I have a bit of code like this:
- ...
- XtPopup(dialog);
- XSetFocus(display,RevertToNone,XtWindow(dialog),CurrentTime);
- ...
- (maybe that parameters should be in different orders but thats not
- the problem)
-
- This piece of code crashes with a bad match error ...
- I suspect it has something to do with that the window is not
- immediatly visible after popup.
- How can I prevend this error?
-
- I actually need to do this, whether this is normal X practice or not.
- Can I prevend this error by getting all events until a
- visibility event and dispatching them (with XtDispatch) by "hand"?
-
- Does anybody have any experience with this?
- Can anybody help me?
-
- Thnx, (please respond by email).
-
-
- Leon Pillich
- University of Nijmegen, Holland
- email: leonp@cs.kun.nl
- -------------------------------------------------------------
- Life is what's happening when you're making other plans ...
- John Lennon
-