mirror of
https://github.com/0intro/wmii
synced 2025-01-07 11:02:11 +03:00
43ed7943be
instead the layout is responsible to provide a frame container of its frames
22 lines
397 B
C
22 lines
397 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"
|
|
|
|
static int comp_layout_name(void *name, void *layout)
|
|
{
|
|
Layout *l = layout;
|
|
size_t len = strlen(l->name);
|
|
|
|
return !strncmp(name, l->name, len);
|
|
}
|
|
|
|
Layout *get_layout(char *name)
|
|
{
|
|
return cext_find_item(&layouts, name, comp_layout_name);
|
|
}
|