On Thursday 05 December 2002 3:54 pm, John Levon wrote:
> On Thu, Dec 05, 2002 at 03:49:35PM +0000, Angus Leeming wrote:
> > > >         fl_register_raw_callback(fl_current_form, FL_ALL_EVENT, C_event_cb);
> > >
> > > Well, simply we cannot get the information we get from the raw
> > > calllback via xforms API.
> >
> > Huh? This /is/ from the xforms API!
>
> No it's  not, the raw callback gives us the X event not the xforms event

Ok, got you.

Actually, the code as it stands is also wrong. Or at least it will be when a 
single LyXView (form) can have multiple BufferViews

        fl_current_form->u_vdata = this;
        fl_register_raw_callback(fl_current_form, FL_ALL_EVENT, C_event_cb);

I think that fl_current_form->u_vdata must be set on an FL_ENTER event and 
unset on an FL_LEAVE one. That way we won't get unexpected behaviour in the 
future.

Do you agree?
Angus

Reply via email to