mirror of
https://github.com/eRgo35/dwm.git
synced 2025-12-16 21:56:10 +01:00
initial commit
This commit is contained in:
18
patch/fullscreen.c
Normal file
18
patch/fullscreen.c
Normal file
@@ -0,0 +1,18 @@
|
||||
Layout *last_layout;
|
||||
|
||||
void
|
||||
fullscreen(const Arg *arg)
|
||||
{
|
||||
int monocle_pos = 0;
|
||||
if (selmon->showbar || last_layout == NULL) {
|
||||
#if MONOCLE_LAYOUT
|
||||
for (monocle_pos = 0, last_layout = (Layout *)layouts; !last_layout->arrange || last_layout->arrange != &monocle; monocle_pos++, last_layout++ );
|
||||
#endif // MONOCLE_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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user