Re: [PATCH weston] cairo-util: fix shadows for small clients

2014-10-29 Thread Marek Chalupa
Hi, thanks for review! On 27 October 2014 18:50, Bill Spitzak wrote: > > > On 10/15/2014 01:16 AM, Marek Chalupa wrote: > >> + shadow_height = height / 2; >> + >> + /* when the height is odd, we need some part of >> the >> +* s

Re: [PATCH weston] cairo-util: fix shadows for small clients

2014-10-27 Thread Bill Spitzak
On 10/15/2014 01:16 AM, Marek Chalupa wrote: + shadow_height = height / 2; + + /* when the height is odd, we need some part of the +* shadow to be one pixel higher. Let's choose the +* upper one */ +

[PATCH weston] cairo-util: fix shadows for small clients

2014-10-24 Thread Marek Chalupa
If the client is small (< 128 pixels in any ward), then the shadows overlap and create dark lines behind clients. This is a problem mosly with pop-up menues. The lines become observable when the menu has less than three items. The other case is when the client doesn't restrict its size when resizin