about summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--dwm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/dwm.c b/dwm.c
index b1cb2f6..f20861e 100644
--- a/dwm.c
+++ b/dwm.c
@@ -636,7 +636,7 @@ drawbar(Monitor *m) {
 
 	dc.x = 0;
 #ifdef XINERAMA
-	{
+	if(mons->next) { /* more than a single monitor */
 		char buf[2];
 		buf[0] = m->screen_number + '0';
 		buf[1] = '\0';
id='n73' href='#n73'>73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111