all repos — fluxbox @ 5503545d8f3228dee6db0c7a1d9de18c77a92ca4

custom fork of the fluxbox windowmanager

use uppercase arguments to fbsetbg from styles
markt markt
commit

5503545d8f3228dee6db0c7a1d9de18c77a92ca4

parent

383b82bcbb6d0efbba523cef00ecb994657d7d3c

2 files changed, 8 insertions(+), 6 deletions(-)

jump to
M ChangeLogChangeLog

@@ -1,6 +1,8 @@

(Format: Year/Month/Day) Changes for 1.0rc3: *07/01/20: + * Make sure styles don't change the lastwallpaper in fbsetbg (Mark) + RootTheme.cc * Let styles override rootCommand in init file -- for the old behavior, add `background: none' to the overlay file (Mark) RootTheme.cc/hh Screen.cc
M src/RootTheme.ccsrc/RootTheme.cc

@@ -208,16 +208,16 @@ // command specified in the resources

filename = FbTk::StringUtil::expandFilename(filename); if (FbTk::FileUtil::isRegularFile(filename.c_str())) { // parse options - std::string options; + std::string options = "-F "; if (strstr(m_background->options().c_str(), "tiled") != 0) - options += "-t "; + options = "-T "; if (strstr(m_background->options().c_str(), "centered") != 0) - options += "-c "; + options = "-C "; if (strstr(m_background->options().c_str(), "aspect") != 0) - options += "-a "; + options = "-A "; // compose wallpaper application "fbsetbg" with argumetns - std::string commandargs = "fbsetbg " + options + " " + filename; + std::string commandargs = "fbsetbg " + options + filename; // call command with options FbCommands::ExecuteCmd exec(commandargs, screenNum());

@@ -225,7 +225,7 @@ exec.execute();

} else if (FbTk::FileUtil::isDirectory(filename.c_str()) && strstr(m_background->options().c_str(), "random") != 0) { - std::string commandargs = "fbsetbg -r " + filename; + std::string commandargs = "fbsetbg -R " + filename; FbCommands::ExecuteCmd exec(commandargs, screenNum()); exec.execute(); } else {