Skip to content

Commit

Permalink
Include the Xinerama and RandR preferences in icewmbg.
Browse files Browse the repository at this point in the history
  • Loading branch information
gijsbers committed Feb 8, 2024
1 parent 3d805c5 commit 3575fbf
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/icewmbg.cc
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
#include "appnames.h"

#define CFGDEF
#define ICEWMBG
#include "icewmbg_prefs.h"

char const *ApplicationName = nullptr;
Expand Down Expand Up @@ -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);
Expand Down
8 changes: 8 additions & 0 deletions src/icewmbg_prefs.h
Original file line number Diff line number Diff line change
Expand Up @@ -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()
};

Expand Down

0 comments on commit 3575fbf

Please sign in to comment.