bar shows if currently is tiled (Mod1-space) or floating (Mod1-Shift-space) mode 54775e0b
Anselm R. Garbe · 2006-07-14 18:55 2 file(s) · +7 −1
bar.c +5 −1
23 23
draw_bar()
24 24
{
25 25
	int i;
26 +
	char *mode = arrange == tiling ? "#" : "~";
27 +
26 28
	dc.x = dc.y = 0;
27 29
	dc.w = bw;
28 30
	drawtext(NULL, False, False);
29 31
30 -
	dc.w = 0;
32 +
	dc.w = textw(mode) + dc.font.height;
33 +
	drawtext(mode, True, True);
34 +
31 35
	for(i = 0; i < TLast; i++) {
32 36
		dc.x += dc.w;
33 37
		dc.w = textw(tags[i]) + dc.font.height;
client.c +2 −0
120 120
			focus(sel);
121 121
		}
122 122
	}
123 +
	draw_bar();
123 124
}
124 125
125 126
void
176 177
			focus(sel);
177 178
		}
178 179
	}
180 +
	draw_bar();
179 181
}
180 182
181 183
void