X-Git-Url: https://jasonwoof.com/gitweb/?p=dwm.git;a=blobdiff_plain;f=layout.c;h=46e82c2ad834b943ecabd8b932a1a6b7b602522c;hp=c4670801b35db635a19cee0d00e78dfe2bcfa965;hb=04dec4c94390fdf57893615de5b5872dd5abbce4;hpb=e40448fd6340620354d82d801d975eaa53dbd924 diff --git a/layout.c b/layout.c index c467080..46e82c2 100644 --- a/layout.c +++ b/layout.c @@ -94,10 +94,10 @@ void initlayouts(void) { unsigned int i, w; - lt = &layout[0]; - nlayouts = sizeof layout / sizeof layout[0]; + lt = &layouts[0]; + nlayouts = sizeof layouts / sizeof layouts[0]; for(blw = i = 0; i < nlayouts; i++) { - w = textw(layout[i].symbol); + w = textw(layouts[i].symbol); if(w > blw) blw = w; } @@ -144,14 +144,14 @@ setlayout(const char *arg) { if(!arg) { lt++; - if(lt == layout + nlayouts) - lt = layout; + if(lt == layouts + nlayouts) + lt = layouts; } else { i = atoi(arg); if(i < 0 || i >= nlayouts) return; - lt = &layout[i]; + lt = &layouts[i]; } if(sel) arrange();