diff options
author | Benjamin Chausse <benjamin@chausse.xyz> | 2022-03-31 12:52:02 -0400 |
---|---|---|
committer | Benjamin Chausse <benjamin@chausse.xyz> | 2022-03-31 12:52:02 -0400 |
commit | 35089914d27121ed942a934bdd5264ac484f2b79 (patch) | |
tree | 3472dc7817f76f327a867f68824f74e650dd3fad | |
parent | 3b7d75f5d9aa375adc71a9efbc7e56258d54e4ab (diff) | |
parent | 9cd7e774ec9f2289d5310e9a6a95171126636a14 (diff) |
Merge branch 'mainmon' into workstation
-rw-r--r-- | config.def.h | 1 | ||||
-rw-r--r-- | dwm.c | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/config.def.h b/config.def.h index 1b70be2..6831c97 100644 --- a/config.def.h +++ b/config.def.h @@ -47,6 +47,7 @@ static const float mfact = 0.55; /* factor of master area size [0.05..0.95] static const int nmaster = 1; /* number of clients in master area */ static const int resizehints = 1; /* 1 means respect size hints in tiled resizals */ static const int lockfullscreen = 1; /* 1 will force focus on the fullscreen window */ +static const int mainmon = 0; /* xsetroot will only change the bar on this monitor */ static const int lpm[] = { /* Index of preferred layout], if LENGTH(lpm)<#monitors -> default layout */ @@ -775,7 +775,7 @@ drawbar(Monitor *m) return; /* draw status first so it can be overdrawn by tags later */ - if (m == selmon) { /* status is only drawn on selected monitor */ + if (m == &mons[mainmon]) { /* status is only drawn on main monitor */ char *text, *s, ch; drw_setscheme(drw, scheme[SchemeNorm]); |