Version: 3.3~rc3-1

On Sat, Nov 29, 2008 at 03:15:16PM +0100, Mike Hommey wrote:
> Package: awesome
> Version: 3.1~rc3-1
> Severity: normal
> 
> I applied the following patch:
> 
>  awful.hooks.arrange.register(function (screen)
>      local layout = awful.layout.get(screen)
>      if layout then
> -        mylayoutbox[screen].image = image(beautiful["layout_" .. layout])
> +        img = image(beautiful["layout_" .. layout])
> +        mylayoutbox[screen].image = img.rotate(img, math.pi / 2)
>      else
>          mylayoutbox[screen].image = nil
>      end
> 
> in my rc.lua in the hope that icons would be rotated (cf. #489409).
> 
> But, for a starter, I was expecting img.rotate(number) to be how it works,
> except that I was getting the following error message then:
>       bad argument #1 to 'rotate' (image expected, got number)
> 
> Second, that's pretty annoying to have to use math.pi for angle calculation.
> 
> And last but not least, the rotated image is scaled down...

The scaling down part is apparently fixed.

Mike



-- 
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]

Reply via email to