On Wed, Nov 01, 2006 at 11:03:18AM +0100, Abdelrazak Younes wrote: > The nice thing about it is that we draw directly on screen thus > eliminating the transfer of the old backing pixmap onto the screen. > On the other hand, the screen estate is not saved. This means that, if > part of the WorkArea is masked, the widget will receive a paint Event > and everything will be redrawn, not only the part that is not masked.
Stuff like that (parts of windows hidden behind others) is usually taken care of by the system. I'd be really surprised if any windowing system from this millenium would actively send draw requests to the application just because some window is moving in front of it. I'd rather suspect we are sending an update() somewhere ourselves. > >Confirmed, sort of (there may be several redraws per keypress) > > Yes, the number of lyx-redraws depend now on the number of Qt > paintEvent(). paintEvent() can be triggered by other thing than > WorkArea::redraw(). It will be triggered by an update() (or sequence of updtes() for that matter). I would like to see a situation where paintEvent() is called without us actively calling update() (or doing 'obvious' stuff, like showing the widget for the first time...) Andre'