Browse Source

don't draw monitor number, if there is just one monitor

Anselm R Garbe 16 năm trước cách đây
mục cha
commit
e408ca97d8
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      dwm.c

+ 1 - 1
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';