about summary refs log tree commit diff stats
path: root/client.c
diff options
context:
space:
mode:
Diffstat (limited to 'client.c')
-rw-r--r--client.c24
1 files changed, 12 insertions, 12 deletions
diff --git a/client.c b/client.c
index 9f46a0e..c03770b 100644
--- a/client.c
+++ b/client.c
@@ -7,7 +7,7 @@
 
 /* static */
 
-static char prop[128];
+static char buf[128];
 
 static void
 attachstack(Client *c) {
@@ -186,12 +186,12 @@ getprops(Client *c) {
 	unsigned int i;
 	Bool result = False;
 
-	if(gettextprop(c->win, dwmprops, prop, sizeof prop)) {
-		for(i = 0; i < ntags && i < sizeof prop - 1 && prop[i] != '\0'; i++)
-			if((c->tags[i] = prop[i] == '1'))
+	if(gettextprop(c->win, dwmprops, buf, sizeof buf)) {
+		for(i = 0; i < ntags && i < sizeof buf - 1 && buf[i] != '\0'; i++)
+			if((c->tags[i] = buf[i] == '1'))
 				result = True;
-		if(i < sizeof prop - 1 && prop[i] != '\0')
-			c->isfloating = prop[i] == '1';
+		if(i < sizeof buf - 1 && buf[i] != '\0')
+			c->isfloating = buf[i] == '1';
 	}
 	return result;
 }
@@ -321,13 +321,13 @@ void
 setprops(Client *c) {
 	unsigned int i;
 
-	for(i = 0; i < ntags && i < sizeof prop - 1; i++)
-		prop[i] = c->tags[i] ? '1' : '0';
-	if(i < sizeof prop - 1)
-		prop[i++] = c->isfloating ? '1' : '0';
-	prop[i] = '\0';
+	for(i = 0; i < ntags && i < sizeof buf - 1; i++)
+		buf[i] = c->tags[i] ? '1' : '0';
+	if(i < sizeof buf - 1)
+		buf[i++] = c->isfloating ? '1' : '0';
+	buf[i] = '\0';
 	XChangeProperty(dpy, c->win, dwmprops, XA_STRING, 8,
-			PropModeReplace, (unsigned char *)prop, i);
+			PropModeReplace, (unsigned char *)buf, i);
 }
 
 void
d=6030d7e2e56d445ca67c6a0e8c9cf33e46bc673c'>^
62c6d163 ^
294a1520 ^
ecfbbfb5 ^
33352536 ^

ecfbbfb5 ^
62c6d163 ^
ecfbbfb5 ^
33352536 ^


ecfbbfb5 ^
3364d19c ^
33352536 ^

62c6d163 ^
ecfbbfb5 ^
9d27e966 ^
33352536 ^

9d27e966 ^
33352536 ^

ecfbbfb5 ^
62c6d163 ^
ecfbbfb5 ^
9d27e966 ^
33352536 ^

9d27e966 ^
ecfbbfb5 ^
6ff9ce26 ^
ecfbbfb5 ^
33352536 ^


ecfbbfb5 ^
9d27e966 ^
33352536 ^

6ff9ce26 ^
ecfbbfb5 ^
9d27e966 ^
33352536 ^

9d27e966 ^
33352536 ^

ecfbbfb5 ^
6ff9ce26 ^
ecfbbfb5 ^
9d27e966 ^
33352536 ^

3364d19c ^
ecfbbfb5 ^
6ff9ce26 ^
ecfbbfb5 ^
33352536 ^
ecfbbfb5 ^
6ff9ce26 ^
ecfbbfb5 ^
9d27e966 ^
33352536 ^

3364d19c ^
ecfbbfb5 ^
6ff9ce26 ^
ecfbbfb5 ^
e5cbbea4 ^
e59a91b7 ^
9b16f190 ^
e59a91b7 ^
9b16f190 ^
e59a91b7 ^
9b16f190 ^
e59a91b7 ^
6030d7e2 ^
9b16f190 ^
6ff9ce26 ^
ee9a9237 ^
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