summaryrefslogtreecommitdiffhomepage
path: root/patch/fullscreen.c
blob: aace55065553d01e72181d78840bf55e142c2d3a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
Layout *last_layout = &layouts[0];

void
fullscreen(const Arg *arg)
{
	if (selmon->showbar) {
		for (last_layout = (Layout *)layouts; last_layout != selmon->lt[selmon->sellt]; last_layout++);
		setlayout(&((Arg) { .v = &layouts[MONOCLE_LAYOUT_POS] }));
	} else {
		setlayout(&((Arg) { .v = last_layout }));
	}
	togglebar(arg);
}