summaryrefslogtreecommitdiffstats
path: root/layout.c
diff options
context:
space:
mode:
authorAnselm R. Garbe <garbeam@gmail.com>2007-08-16 18:41:22 +0200
committerAnselm R. Garbe <garbeam@gmail.com>2007-08-16 18:41:22 +0200
commit04dec4c94390fdf57893615de5b5872dd5abbce4 (patch)
tree70baf422ae086ea7467c4550a0cfd0b9f288b4d7 /layout.c
parentfixed the issue observed by various people, that clients appeared on empty tags (diff)
downloaddwm-04dec4c94390fdf57893615de5b5872dd5abbce4.tar.gz
dwm-04dec4c94390fdf57893615de5b5872dd5abbce4.zip
made plural arrays
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();