Package: fluxbox Version: 1.1.1-8 Severity: wishlist
The attached patch fixes fbsetbg so that it preserves the aspect ratio when using feh to set the background image. >From the fbsetbg man page if the -a option was given it would attempt to maximize the image while preserving the aspect ratio otherwise it would fall back to -f. When the screen size is different than the size of the image the result is that the image fills the screen but the aspect ratio is not preserved. Using feh directly it is possible to set the background image and preserve the aspect ratio using the following command. feh --bg-fill <some image> But when fbsetbg calls feh it does not use this option. fbsetbg -a -r ~/.fluxbox/backgrounds/ Examining the source of fbsetbg it can be seen that the -a 'aspect' option is simply an alias to the -f 'full' option. -- System Information: Debian Release: squeeze/sid APT prefers oldstable APT policy: (500, 'oldstable'), (500, 'unstable'), (500, 'testing'), (500, 'stable') Architecture: i386 (i686) Kernel: Linux 2.6.32-5-686 (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 fluxbox depends on: ii libc6 2.10.2-9 Embedded GNU C Library: Shared lib ii libfontconfig1 2.8.0-2.1 generic font configuration library ii libfreetype6 2.3.11-1 FreeType 2 font engine, shared lib ii libgcc1 1:4.4.4-3 GCC support library ii libice6 2:1.0.6-1 X11 Inter-Client Exchange library ii libimlib2 1.4.2-8+b1 powerful image loading and renderi ii libsm6 2:1.1.1-1 X11 Session Management library ii libstdc++6 4.4.4-3 The GNU Standard C++ Library v3 ii libx11-6 2:1.3.3-3 X11 client-side library ii libxext6 2:1.1.1-3 X11 miscellaneous extension librar ii libxft2 2.1.14-2 FreeType-based font drawing librar ii libxinerama1 2:1.1-3 X11 Xinerama extension library ii libxpm4 1:3.5.8-1 X11 pixmap library ii libxrandr2 2:1.3.0-3 X11 RandR extension library ii libxrender1 1:0.9.5-2 X Rendering Extension client libra ii menu 2.1.43 generates programs menu for all me ii zlib1g 1:1.2.3.4.dfsg-3 compression library - runtime Versions of packages fluxbox recommends: ii xfonts-terminus 4.30-2 Fixed-width fonts for fast reading Versions of packages fluxbox suggests: pn fbdesk <none> (no description available) pn fbpager <none> (no description available) pn fluxconf <none> (no description available) -- no debconf information
--- /usr/bin/fbsetbg 2010-05-29 10:49:47.000000000 -0700 +++ fbsetbg 2010-05-29 10:49:19.000000000 -0700 @@ -443,7 +443,7 @@ case $WPSETTER in full='--bg-scale' tile='--bg-tile' center='--bg-center' - aspect=$full + aspect='--bg-fill' debugstory=$standardok ;; hsetroot)