On Fri, May 07, 2010 at 09:03:59PM -0400, chm wrote:
> On 5/7/2010 1:03 PM, SourceForge.net wrote:
> > Summary: -dev xwin shows fatal error when window closed
> >
> > Initial Comment:
> > For -dev xwin, when you close the window by alt+F4 or other equivalents, 
> > the following fatal error message is the result:
> >
> > XIO:  fatal IO error 11 (Resource temporarily unavailable) on X server
> >
> > This fatal error can be disruptive to certain environments (e.g., lisp)  
> > and should be replaced by a smooth exit from PLplot. as occurs under these 
> > same circumstances for -dev qtwidget and -dev wxwidgets.
> >
> >    
> 
> I took a look at xwin.c and it appears that a number of the X11
> calls do not have check for error returns.  Perhaps this is the
> origin of the problem.

The underlying problem is that to detect pressing of the close button in 
the top right of a X window you need to explicitly ask for it to be 
forwarded on, and then handle the consequences yourself. I've now 
committed a change to do this. The event handling in the xwin driver is 
not simple and so I would appreciate people robustly testing these 
changes to make sure I've not broken anything else.

Andrew

------------------------------------------------------------------------------

_______________________________________________
Plplot-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/plplot-devel

Reply via email to