示例#1
0
文件: bar.c 项目: i7otep9wka/sway
static void bar_init(struct bar *bar) {
	bar->config = init_config();
	bar->status = init_status_line();
	bar->output = malloc(sizeof(struct output));
	bar->output->window = NULL;
	bar->output->registry = NULL;
	bar->output->workspaces = create_list();
	bar->output->name = NULL;
}
示例#2
0
文件: bar.c 项目: dardevelin/sway
static void bar_init(struct bar *bar) {
	bar->config = init_config();
	bar->status = init_status_line();
	bar->outputs = create_list();
}