Edwin Leuven wrote:
Abdelrazak Younes wrote:
Edwin Leuven wrote:
always moves first to the beginning of the inset before showning up at the right place on mouse click

(hope this is clear)

The attached patch fixes this and avoid many redrawing following mouse or keyboard navigation (using arrow keys Page[Up/Down] or space).

it seems better, but not always

sometimes the cursor flashes at the beginning of the inset,

This happens when you drag a tiny bit the mouse when clicking, even if you don't did it on purpose (and thus didn't notice it). LFUN_MOUSE_MOTION needs to be optimized also so that no redraw happens if there is no selection (or no additional selection).

also the "box" around the math inset is not always displayed when clicking there

The problem is that displaying it would provoke a full redraw and repaint. I think it is OK if we don't displayed it when clicking but only when typing characters. This is a good compromise for performance IMHO as you don't really need the frame when navigating a formula, or do you?



double clicking always flashes the cursor at the beginning

LFUN_DOUBLE_CLICK needs to be optimized ;-)


i think if you enter a math inset and then insert a frac and click around a bit you should see it

I am not really sure how to solve that. I guess it is a higher level problem: for some reason the cursor is always positioned at the beginning of the inset. In some cases we avoid showing it by sparing a redraw but not always :-/



sorry for nagging

No PB. I already said that there's some work remaining.


There's still a lot of things that can be optimized out by using the appropriate Update Flags. Maybe I will motivate someone to continue this work, who knows ;-)

the problem is nobody *knows* ;-)

That's probably the reason indeed :-(
I agree that it takes some times to apprehend the LyX drawing strategy. I've tried to simplify the code though so it should be a bit simpler now. But it's definitely not evident...

you have done (and are doing) a great job btw! if you don't watch out

Thanks :-)

the (qt4) frontend will be faster than the xforms one has ever been...

Hopefully the qt4 port is more usable for math on Mac now.

Abdel.

Reply via email to