fix display $WPSETTER

BUG: 1031
This commit is contained in:
Thomas Lübking 2016-08-28 22:03:39 +02:00 committed by Mathias Gumz
parent e8021e3697
commit 31e758f1f1

View file

@ -408,10 +408,11 @@ case $WPSETTER in
debugstory=$standardok
;;
display)
full="`xwininfo -root 2> /dev/null|grep geom` -window root"
rootsize=`xwininfo -root 2> /dev/null|sed '/-geometry/!d; s/.* \([0-9]*x[0-9]*\)+.*/\1/g'`
full="-window root -resize ${rootsize}!"
tile='-window root'
center='-backdrop -window root'
aspect=$full
aspect="-window root -resize "${rootsize}^" -crop ${rootsize}+0+0 -gravity center -window root"
debugstory=$standardrant
;;
Esetroot)
@ -553,7 +554,7 @@ fi
$WPSETTER `eval echo $option` "$wallpaper"
if [ $? -ne 0 ]; then
if [ "$?" != "0" -a "$WPSETTER" != "display" ]; then # display is broken, all IM falsely fail for "unrecognized event type FOO"...
message "Something went wrong while setting the wallpaper.
Run '$WPSETTER "`eval echo $option` $wallpaper"' from an xterm to find out what."
exit 1