[compiz] GWD button drawing prob-- any Cairo pro have insights?
davidr at novell.com
Mon Apr 9 08:35:00 PDT 2007
On Sat, 2007-04-07 at 20:46 -0600, Mike Cook wrote:
> Since I first tried nVidia's AIGLX with Compiz I've been seeing some pretty
> consistent drawing problems on GWD's minimize and maximize buttons on hover.
> It looks like part of the fill is drawn with low alpha. I haven't been able to
> duplicate it when using Xgl... Here's a quick vid of what I'm seeing:
> The following patch seems to work around the problem (but only if I set the
> alpha less than 1.0):
> --- gtk/window-decorator/gtk-window-decorator.c
> +++ gtk/window-decorator/gtk-window-decorator.c
> @@ -943,7 +943,7 @@ button_state_paint (cairo_t *cr,
> cairo_stroke_preserve (cr);
> if (state & IN_EVENT_WINDOW)
> - cairo_set_source_rgb (cr, 1.0, 1.0, 1.0);
> + cairo_set_source_rgba (cr, 1.0, 1.0, 1.0, 0.99);
> cairo_set_source_rgba (cr, color->r, color->g, color->b, 0.95);
> I'm not proficient enough with Cairo to know if this is a bug there, with
> nVidia's driver, or something in GWD or somewhere else. Anyone have insights?
Seems very much like an X server issue to me.
More information about the compiz