Your message dated Wed, 20 May 2009 19:33:23 +0200
with message-id <[email protected]>
and subject line Re: Bug#507258: awesome: Image rotation is both annoying and 
broken
has caused the Debian Bug report #507258,
regarding awesome: Image rotation is both annoying and broken
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
507258: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=507258
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
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...

Mike

PS: Also, beautiful.awesome_icon is apparently not an image, so it can't be
rotated...

-- System Information:
Debian Release: lenny/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.26-1-amd64 (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages awesome depends on:
ii  libc6                     2.7-16         GNU C Library: Shared libraries
ii  libcairo2                 1.6.4-6.1      The Cairo 2D vector graphics libra
ii  libdbus-1-3               1.2.1-4        simple interprocess messaging syst
ii  libev3                    3.43-1         high-performance event loop librar
ii  libglib2.0-0              2.16.6-1       The GLib library of C routines
ii  libimlib2                 1.4.0-1.2      powerful image loading and renderi
ii  liblua5.1-0               5.1.3-1        Simple, extensible, embeddable pro
ii  libncurses5               5.7+20081122-1 shared libraries for terminal hand
ii  libpango1.0-0             1.20.5-3       Layout and rendering of internatio
ii  libreadline5              5.2-3          GNU readline and history libraries
ii  libx11-6                  2:1.1.5-2      X11 client-side library
ii  libx11-xcb1               2:1.1.5-2      Xlib/XCB interface library
ii  libxcb-atom1              0.3.0-1        utility libraries for X C Binding 
ii  libxcb-aux0               0.3.0-1        utility libraries for X C Binding 
ii  libxcb-event1             0.3.0-1        utility libraries for X C Binding 
ii  libxcb-icccm1             0.3.0-1        utility libraries for X C Binding 
ii  libxcb-keysyms0           0.3.0-1        utility libraries for X C Binding 
ii  libxcb-property1          0.3.0-1        utility libraries for X C Binding 
ii  libxcb-randr0             1.1-1.1        X C Binding, randr extension
ii  libxcb-render-util0       0.3.0-1        utility libraries for X C Binding 
ii  libxcb-render0            1.1-1.1        X C Binding, render extension
ii  libxcb-xinerama0          1.1-1.1        X C Binding, xinerama extension
ii  libxcb1                   1.1-1.1        X C Binding
ii  menu                      2.1.41         generates programs menu for all me

Versions of packages awesome recommends:
ii  x11-xserver-utils             7.3+5      X server utilities

awesome suggests no packages.

-- no debconf information



--- End Message ---
--- Begin Message ---
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


--- End Message ---

Reply via email to