Transparent background for widgets in KHTML

Germain Garand germain at ebooksfrance.org
Fri Mar 14 01:21:34 GMT 2008


Le vendredi 14 mars 2008, Rafael Fernández López a écrit :
> Hi Germain,
>
> You rock. Yes, the composition mode fixed the problem. The only thing we
> had to take in count was the alpha channel. The patch is located at:
>
> http://media.ereslibre.es/2008/03/khtml-widgets.diff
>
> Please commit it, or if you want me to do so, just tell me.
>

please go ahead, by all means.

> Now, the other important thing. We need to spot where we are trying to open
> more than one painter for the same painting device without ending the
> already opened one. I am sure the painting strangenesses come all from
> there.

I would not think it happens in KHTML, but rather in the guts of 
QWidget::render. Maybe some kind of paint event recursion.

Our widgets are quite special, to say the least. Placed off screen. Set with 
rarely used flags to monitor their repaints (see khtmlview.cpp around line 
2020 for more gory details). They could easily trigger unexpected conditions.

Greetings,
Germain




More information about the kfm-devel mailing list