diff options
author | Thomas Lübking <thomas.luebking@gmail.com> | 2016-08-28 20:03:39 (GMT) |
---|---|---|
committer | Mathias Gumz <akira@fluxbox.org> | 2016-09-03 18:08:14 (GMT) |
commit | 31e758f1f1583f5ff89d4ba7b3ad7a59be96a2df (patch) | |
tree | 1bd2a5b0016920767f96ab870316a27b80a06eb0 /util/fbsetbg | |
parent | e8021e36974bb81720d4d5658a69e2d9711d702c (diff) | |
download | fluxbox-31e758f1f1583f5ff89d4ba7b3ad7a59be96a2df.zip fluxbox-31e758f1f1583f5ff89d4ba7b3ad7a59be96a2df.tar.bz2 |
fix display $WPSETTER
BUG: 1031
Diffstat (limited to 'util/fbsetbg')
-rw-r--r-- | util/fbsetbg | 7 |
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" |
556 | if [ $? -ne 0 ]; then | 557 | if [ "$?" != "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. |
558 | Run '$WPSETTER "`eval echo $option` $wallpaper"' from an xterm to find out what." | 559 | Run '$WPSETTER "`eval echo $option` $wallpaper"' from an xterm to find out what." |
559 | exit 1 | 560 | exit 1 |