On Thursday 05 December 2002 1:39 pm, John Levon wrote:
> On Thu, Dec 05, 2002 at 01:16:57PM +0000, Angus Leeming wrote:
> > In current cvs the cursor is /always/ an arrow. XC_xterm has disappeared.
> > I guess that the fundamental reason is that XWorkArea's handler reacts to
> > these events so:
>
> I suppose I broke it, and forgot to fix it.
>
> > I guess that we need new LFUN_MOUSE_ENTER and LFUN_MOUSE_LEAVE lfuns
> > so that dispatch can tell the LyXView to change the cursor.
>
> Hurrgh, what ? What has lyx core got to do with the mouse pointer glyph
> ? You must handle this entirely within XWorkArea.

I would of course be happy to change only XWorkArea, but the cursor glyph 
depends also on whether input is prohibitted or not and /that/ is controlled 
by LyXView. That, therefore, is the right place to set the glyph and so 
necessitates going through dispatch.

I seem to remember a similar conversation with Lars when I proposed the 
original patch. I took your point of view and he insisted that this be 
controlled by the core...

> Actually  it seems I need to fix this in Qt too.

Wait for my patch; I've left you with this in QtView.h ;-)
        /// FIXME. Not yet implemented.
        virtual void setCursor(bool editing) const {}

> regards
> john

Angus

Reply via email to