aboutsummaryrefslogtreecommitdiff
path: root/util
diff options
context:
space:
mode:
authorThomas Lübking <thomas.luebking@gmail.com>2016-08-28 20:03:39 (GMT)
committerMathias Gumz <akira@fluxbox.org>2016-09-03 18:08:14 (GMT)
commit31e758f1f1583f5ff89d4ba7b3ad7a59be96a2df (patch)
tree1bd2a5b0016920767f96ab870316a27b80a06eb0 /util
parente8021e36974bb81720d4d5658a69e2d9711d702c (diff)
downloadfluxbox-31e758f1f1583f5ff89d4ba7b3ad7a59be96a2df.zip
fluxbox-31e758f1f1583f5ff89d4ba7b3ad7a59be96a2df.tar.bz2
fix display $WPSETTER
BUG: 1031
Diffstat (limited to 'util')
-rw-r--r--util/fbsetbg7
1 files changed, 4 insertions, 3 deletions
diff --git a/util/fbsetbg b/util/fbsetbg
index 1b3e1d9..f605897 100644
--- a/util/fbsetbg
+++ b/util/fbsetbg
@@ -408,10 +408,11 @@ case $WPSETTER in
408 debugstory=$standardok 408 debugstory=$standardok
409 ;; 409 ;;
410 display) 410 display)
411 full="`xwininfo -root 2> /dev/null|grep geom` -window root" 411 rootsize=`xwininfo -root 2> /dev/null|sed '/-geometry/!d; s/.* \([0-9]*x[0-9]*\)+.*/\1/g'`
412 full="-window root -resize ${rootsize}!"
412 tile='-window root' 413 tile='-window root'
413 center='-backdrop -window root' 414 center='-backdrop -window root'
414 aspect=$full 415 aspect="-window root -resize "${rootsize}^" -crop ${rootsize}+0+0 -gravity center -window root"
415 debugstory=$standardrant 416 debugstory=$standardrant
416 ;; 417 ;;
417 Esetroot) 418 Esetroot)
@@ -553,7 +554,7 @@ fi
553 554
554 555
555$WPSETTER `eval echo $option` "$wallpaper" 556$WPSETTER `eval echo $option` "$wallpaper"
556if [ $? -ne 0 ]; then 557if [ "$?" != "0" -a "$WPSETTER" != "display" ]; then # display is broken, all IM falsely fail for "unrecognized event type FOO"...
557 message "Something went wrong while setting the wallpaper. 558 message "Something went wrong while setting the wallpaper.
558Run '$WPSETTER "`eval echo $option` $wallpaper"' from an xterm to find out what." 559Run '$WPSETTER "`eval echo $option` $wallpaper"' from an xterm to find out what."
559 exit 1 560 exit 1