Hi, On Fri, Nov 16, 2007 at 04:19:42PM +0100, Johannes Hofmann wrote:
Hello,
here comes a patch that avoids complete redrawing if only a child widget (button or form input) requests redrawing.
Committed.
I don't really like the fact, that fltk widgets are sometimes drawn via Group::draw() and sometimes via theLayout->expose(), but this is already the case without my patch, so I just leave it as it is for now.
Yes. AFAIR we talked about this with Sebastian. IIRC he also didn't like much the mixed approach, and if he found a simpler way to do it, it'd be changed. The complex button stuff, and the fltk embedding could be avoided by re-implementing those in dw, but it looks like overkill.
In the long run, I would propose to add a mechanism similar to fltk DAMAGE_CHILD to dw.
If you find a simpler/better way, it's more than welcomed. -- Cheers Jorge.-