diff options
author | Benjamin Chausse <benjamin@chausse.xyz> | 2022-03-31 00:04:35 -0400 |
---|---|---|
committer | Benjamin Chausse <benjamin@chausse.xyz> | 2022-03-31 00:04:35 -0400 |
commit | 374c1dcb5ca57f2ca5055d2d9e503c94c3afa9db (patch) | |
tree | 0baf9836866831dac5074d19e7751da1bc4bca1b | |
parent | 1ac60c85fe6bfc07262de840ab4c5a4ec1bd18f4 (diff) | |
parent | 9cd7e774ec9f2289d5310e9a6a95171126636a14 (diff) |
Merge branch 'mainmon' into battlestation
-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 be64671..eb15b15 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]); |