Example #1
0
File: area.c Project: bartman/wmii
void
area_detach(Frame *f) {
	View *v;
	Area *a;

	a = f->area;
	v = a->view;

	if(a->floating)
		float_detach(f);
	else
		column_detach(f);

	if(v->sel->sel == nil && v->floating->sel)
		v->sel = v->floating;

	view_arrange(v);
}
Example #2
0
void
area_detach(Frame *f) {
	View *v;
	Area *a;

	a = f->area;
	v = a->view;

	event("AreaDetach %s %a %#C\n", v->name, a, f->client);
	if(a->floating)
		float_detach(f);
	else
		column_detach(f);

	if(v->sel->sel == nil && v->floating->sel)
	if(!v->floating->sel->client->nofocus)
		v->sel = v->floating;

	view_arrange(v);
}