aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--config.h1
-rw-r--r--dwm.c2
2 files changed, 2 insertions, 1 deletions
diff --git a/config.h b/config.h
index 0cd0fe7..7286cbf 100644
--- a/config.h
+++ b/config.h
@@ -43,6 +43,7 @@ static char *colors[][3] = {
/* tagging */
static const char *tags[] = { " 󰘦 ", " 󰖟 ", "  ", " 󰛊 " };
+static const int mainmon = 0;
/* default layout per tags */
/* The first element is for all-tag view, following i-th element corresponds to */
diff --git a/dwm.c b/dwm.c
index f0d6144..bce09fd 100644
--- a/dwm.c
+++ b/dwm.c
@@ -1035,7 +1035,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 */
tw = m->ww - drawstatusbar(m, bh, stext);
}