about summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--bar.c6
-rw-r--r--client.c2
2 files changed, 7 insertions, 1 deletions
diff --git a/bar.c b/bar.c
index 611c669..953ac6b 100644
--- a/bar.c
+++ b/bar.c
@@ -23,11 +23,15 @@ void
 draw_bar()
 {
 	int i;
+	char *mode = arrange == tiling ? "#" : "~";
+
 	dc.x = dc.y = 0;
 	dc.w = bw;
 	drawtext(NULL, False, False);
 
-	dc.w = 0;
+	dc.w = textw(mode) + dc.font.height;
+	drawtext(mode, True, True);
+
 	for(i = 0; i < TLast; i++) {
 		dc.x += dc.w;
 		dc.w = textw(tags[i]) + dc.font.height;
diff --git a/client.c b/client.c
index 487cb0c..5b666c9 100644
--- a/client.c
+++ b/client.c
@@ -120,6 +120,7 @@ floating(Arg *arg)
 			focus(sel);
 		}
 	}
+	draw_bar();
 }
 
 void
@@ -176,6 +177,7 @@ tiling(Arg *arg)
 			focus(sel);
 		}
 	}
+	draw_bar();
 }
 
 void
kkartik/mu/commit/html/continuation2.mu.html?h=hlt&id=ac07e589b3e912c704c2011d543f18b16712ff15'>ac07e589 ^
805d58c6 ^
ac07e589 ^




36365244 ^
































e4ac3c9e ^
36365244 ^
d55e7738 ^


ef7d834f ^









b301e0c0 ^
ef7d834f ^
5fe060d5 ^
ef7d834f ^


b301e0c0 ^
ef7d834f ^
805d58c6 ^



ef7d834f ^


b301e0c0 ^
ef7d834f ^
4a48bedc ^
e82dc626 ^
5fe060d5 ^

ef7d834f ^
b301e0c0 ^
ef7d834f ^
36365244 ^



1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
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