[compiz] GWD button drawing prob-- any Cairo pro have insights?

2007-04-07 Thread Mike Cook
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 see

Re: [compiz] GWD button drawing prob-- any Cairo pro have insights?

2007-04-07 Thread Gerd Kohlberger
I think that happens because of how cairo maps coordinates. You have to shift some coordinates by 0.5px depending on the line width. The first question here explains it better than i can: http://cairographics.org/FAQ ( btw, i guess i'm a 'pixels are little squares' person :) ) I already had a

Re: [compiz] GWD button drawing prob-- any Cairo pro have insights?

2007-04-07 Thread Gerd Kohlberger
This patch should fix it. It seems to work good here. The x-shift is not really necessary, but the close button looks a little sharper that way. diff --git a/gtk/window-decorator/gtk-window-decorator.c b/gtk/window-decorator/gtk-window-decorator.c index 07ca5b8..15b29f8 100644 --- a/gtk/window-de

Re: [compiz] GWD button drawing prob-- any Cairo pro have insights?

2007-04-08 Thread Gerd Kohlberger
No forget the patch, after using it some time the maximize glitch is still there. It just seems to appear less often. I saw some people reporting this on the quinn-forums some time ago, but i don't know if they all had a nvidia setup. Maybe it's really a driver bug. Gerd Kohlberger wrote: This

Re: [compiz] GWD button drawing prob-- any Cairo pro have insights?

2007-04-09 Thread David Reveman
On Sun, 2007-04-08 at 05:48 +0200, Gerd Kohlberger wrote: > I think that happens because of how cairo maps coordinates. You have to shift > some coordinates by 0.5px > depending on the line width. The first question here explains it better than > i can: > http://cairographics.org/FAQ ( btw, i gue

Re: [compiz] GWD button drawing prob-- any Cairo pro have insights?

2007-04-09 Thread David Reveman
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 > dup