mirror of
https://github.com/bakkeby/dwm-flexipatch
synced 2024-11-15 00:15:07 +00:00
13 lines
337 B
C
13 lines
337 B
C
Layout *last_layout;
|
|
|
|
void
|
|
fullscreen(const Arg *arg)
|
|
{
|
|
if (selmon->showbar || last_layout == NULL) {
|
|
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);
|
|
} |