blob: f0f272663220d8dd4fe5e61f1d7add4a1abf1d5b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
Layout *last_layout;
void
fullscreen(const Arg *arg)
{
int monocle_pos;
if (selmon->showbar || last_layout == NULL) {
for (monocle_pos = 0, last_layout = (Layout *)layouts; !last_layout->arrange || last_layout->arrange != &monocle; monocle_pos++, last_layout++ );
for (last_layout = (Layout *)layouts; last_layout != selmon->lt[selmon->sellt]; last_layout++);
setlayout(&((Arg) { .v = &layouts[monocle_pos] }));
} else {
setlayout(&((Arg) { .v = last_layout }));
}
togglebar(arg);
}
|