diff --git a/src/icewmbg.cc b/src/icewmbg.cc index 80a370730..2ffc5fe5a 100644 --- a/src/icewmbg.cc +++ b/src/icewmbg.cc @@ -14,6 +14,7 @@ #include "appnames.h" #define CFGDEF +#define ICEWMBG #include "icewmbg_prefs.h" char const *ApplicationName = nullptr; @@ -920,7 +921,8 @@ bool Background::become(bool replace) { } void Background::printOptions() { - for (cfoption* o = icewmbg_prefs; o && o->type; ++o) { + for (int k = 0; k < 10 && icewmbg_prefs[k].type; ++k) { + cfoption* o = &icewmbg_prefs[k]; switch (o->type) { case cfoption::CF_BOOL: printf("%-26s = %d\n", o->name, *o->v.b.bool_value); diff --git a/src/icewmbg_prefs.h b/src/icewmbg_prefs.h index 75c6824b0..ee564b129 100644 --- a/src/icewmbg_prefs.h +++ b/src/icewmbg_prefs.h @@ -47,6 +47,14 @@ cfoption icewmbg_prefs[] = { OIV("CycleBackgroundsPeriod", &cycleBackgroundsPeriod, 0, INT_MAX, "Seconds between cycling over all background images, default zero is off"), +#ifdef ICEWMBG + OBV("XRRDisable", &xrrDisable, nullptr), + + OIV("XineramaPrimaryScreen", &xineramaPrimaryScreen, 0, 63, nullptr), + + OSV("XRRPrimaryScreenName", &xineramaPrimaryScreenName, nullptr), +#endif + OK0() };