diff options
author | Benjamin Chausse <benjamin@chausse.xyz> | 2024-01-26 17:45:33 -0500 |
---|---|---|
committer | Benjamin Chausse <benjamin@chausse.xyz> | 2024-01-26 17:45:33 -0500 |
commit | d75a4d8602f2add0f15c6c78f98c3d054b457596 (patch) | |
tree | 5efbfc593ee100723b76fcb1d2aa7441aceadaaf | |
parent | 12ae9ee25290f985f2d17119247137b5a1de3340 (diff) |
Implement mainmon patch
-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 b2579bd..52116ce 100644 --- a/config.def.h +++ b/config.def.h @@ -43,6 +43,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 Layout layouts[] = { /* symbol arrange function */ @@ -746,7 +746,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 selected monitor */ char *text, *s, ch; drw_setscheme(drw, scheme[SchemeNorm]); |