On Monday 30 July 2001 16:38, John Levon wrote:
> On Mon, Jul 30, 2001 at 04:14:17PM +0100, Angus Leeming wrote:
> 
> > As I read it, fl_check_forms() passes XEvents to WorkArea through 
> > C_WorkArea_work_area_handler. In which case, there is little or nothing 
that 
> > we can do about this particular problem as it's all internal to xforms 
and X.
> 
> so it seems :(
> 
> xforms is returning a dud pointer to us...

Would this catch it?

        int C_WorkArea_work_area_handler(FL_OBJECT * ob, int event,
                                           FL_Coord, FL_Coord, 
                                           int key, void * xev)
        {
                lyx::Assert(ob); // We control this one, so Assert on error
                if (!xev) return 1 // We don't control this one, so deal with it 
gracefully
                        
                return WorkArea::work_area_handler(ob, event,
                                                   0, 0, key, xev);
        }

or is xforms returning a truly dud pointer?

> more important is :
> 
> lyxerr << "Type: 0x" << std::hex << ev.xany.type <<
>        "Target: 0x" << std::hex << ev.xany.window << endl;

Well chuck it in...

A.

Reply via email to