dotfiles/.suckless/dwm/patch/fullscreen.c

16 lines
354 B
C
Raw Normal View History

2025-05-29 22:44:03 +02:00
Layout *last_layout;
void
fullscreen(const Arg *arg)
{
int monocle_pos = 0;
if (selmon->showbar || last_layout == NULL) {
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);
}