mirror of
https://github.com/bakkeby/dwm-flexipatch
synced 2024-11-18 21:28:09 +00:00
15 lines
496 B
C
15 lines
496 B
C
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);
|
|
} |