summaryrefslogtreecommitdiffstats
path: root/layout.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--layout.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/layout.c b/layout.c
index c467080..46e82c2 100644
--- a/layout.c
+++ b/layout.c
@@ -94,10 +94,10 @@ void
94initlayouts(void) { 94initlayouts(void) {
95 unsigned int i, w; 95 unsigned int i, w;
96 96
97 lt = &layout[0]; 97 lt = &layouts[0];
98 nlayouts = sizeof layout / sizeof layout[0]; 98 nlayouts = sizeof layouts / sizeof layouts[0];
99 for(blw = i = 0; i < nlayouts; i++) { 99 for(blw = i = 0; i < nlayouts; i++) {
100 w = textw(layout[i].symbol); 100 w = textw(layouts[i].symbol);
101 if(w > blw) 101 if(w > blw)
102 blw = w; 102 blw = w;
103 } 103 }
@@ -144,14 +144,14 @@ setlayout(const char *arg) {
144 144
145 if(!arg) { 145 if(!arg) {
146 lt++; 146 lt++;
147 if(lt == layout + nlayouts) 147 if(lt == layouts + nlayouts)
148 lt = layout; 148 lt = layouts;
149 } 149 }
150 else { 150 else {
151 i = atoi(arg); 151 i = atoi(arg);
152 if(i < 0 || i >= nlayouts) 152 if(i < 0 || i >= nlayouts)
153 return; 153 return;
154 lt = &layout[i]; 154 lt = &layouts[i];
155 } 155 }
156 if(sel) 156 if(sel)
157 arrange(); 157 arrange();