about summary refs log tree commit diff stats
path: root/dwm.c
diff options
context:
space:
mode:
authorAnselm R Garbe <anselm@garbe.us>2009-06-23 16:29:32 +0100
committerAnselm R Garbe <anselm@garbe.us>2009-06-23 16:29:32 +0100
commit0d8671a5ad040000541ebaa893582e520c7e33a3 (patch)
tree960d8b435210097c8ecd5cd43ac2f87f9f86aef5 /dwm.c
parent38e9b67026003fdce065ec220d2195232c881538 (diff)
downloaddwm-0d8671a5ad040000541ebaa893582e520c7e33a3.tar.gz
declare buf only if XINERAMA support is used
Diffstat (limited to 'dwm.c')
-rw-r--r--dwm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/dwm.c b/dwm.c
index e0a6286..896c8a7 100644
--- a/dwm.c
+++ b/dwm.c
@@ -599,7 +599,6 @@ die(const char *errstr, ...) {
 
 void
 drawbar(Monitor *m) {
-	char buf[2];
 	int x;
 	unsigned int i, occ = 0, urg = 0;
 	unsigned long *col;
@@ -616,6 +615,7 @@ drawbar(Monitor *m) {
 	dc.x = 0;
 #ifdef XINERAMA
 	{
+		char buf[2];
 		buf[0] = m->screen_number + '0';
 		buf[1] = '\0';
 		dc.w = TEXTW(buf);
div class='alt'>
94e429f ^







30ffee2 ^
94e429f ^




30ffee2 ^
94e429f ^








30ffee2 ^
94e429f ^
214aa23 ^

2832cbc ^
94e429f ^




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
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118