wmii/cmd/wm/layout.c
2005-12-21 17:18:11 +02:00

19 lines
335 B
C

/*
* (C)opyright MMIV-MMV Anselm R. Garbe <garbeam at gmail dot com>
* See LICENSE file for license details.
*/
#include <string.h>
#include "wm.h"
Layout *
match_layout(char *name)
{
Layout *l;
for(l = layouts; l; l = l->next)
if(!strncmp(name, l->name, strlen(l->name)))
return l;
return nil;
}