You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
dwm-flexipatch/patch/fullscreen.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);
}