diff --git a/src/Window.cc b/src/Window.cc index 6c7cf111..a6fff7ce 100644 --- a/src/Window.cc +++ b/src/Window.cc @@ -472,7 +472,7 @@ void FluxboxWindow::init() { int real_y = frame().y(); if (real_x >= 0 && - real_y + frame().y() >= 0 && + real_y >= 0 && real_x <= (signed) screen().width() && real_y <= (signed) screen().height()) place_window = false; diff --git a/util/fbsetbg b/util/fbsetbg index 718b19ef..6ae66988 100644 --- a/util/fbsetbg +++ b/util/fbsetbg @@ -306,6 +306,9 @@ while [ $# -gt 0 ]; do message "No previous wallpaper recorded for display ${DISPLAY}" exit 1 fi + if [ "$option" = "fbsetroot" ]; then + use_fbsetroot + fi else message "No previous wallpaper recorded for display ${DISPLAY}" exit 1