On Thursday 05 December 2002 4:02 pm, John Levon wrote:
> On Thu, Dec 05, 2002 at 04:05:56PM +0000, Angus Leeming wrote:
> > Actually, the code as it stands is also wrong. Or at least it will be
> > when a single LyXView (form) can have multiple BufferViews
>
> I have little hope of xforms ever managing this.
>
> > 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.
>
> Yes, probably.

Umm. I've just had a look at what you do about this in the Qt frontend :-(

It seems that both frontends suffer in the same way. Selections are made by 
setting a global callback and then hoping we find the right WorkArea. All 
works today because we have only one WorkArea but it's pretty nasty.

It appears that this is one thing for which a
        BufferView * LyXGUI::currentBufferView();
might really, truly be needed.

After all, that's effectively what we are doing now. Hence I feel that there 
is more than a little justification for LFUN_MOUSE_ENTER/LEAVE lfuns, if only 
to set current_view.

Please tell me I'm wrong with this analysis.
Angus

Reply via email to