mirror of
https://github.com/mintycube/dwm.git
synced 2024-10-22 14:05:45 +02:00
25 lines
493 B
C
25 lines
493 B
C
void
|
|
togglefullscreen(const Arg *arg)
|
|
{
|
|
Client *c = selmon->sel;
|
|
if (!c)
|
|
return;
|
|
|
|
#if !FAKEFULLSCREEN_PATCH && FAKEFULLSCREEN_CLIENT_PATCH
|
|
if (c->fakefullscreen == 1) {
|
|
c->fakefullscreen = 2;
|
|
if (c->isfullscreen)
|
|
c->isfullscreen = 0;
|
|
} else if (c->fakefullscreen == 2) {
|
|
c->fakefullscreen = 0;
|
|
togglefakefullscreen(NULL);
|
|
arrange(selmon);
|
|
return;
|
|
}
|
|
#endif // FAKEFULLSCREEN_CLIENT_PATCH
|
|
|
|
setfullscreen(c, !c->isfullscreen);
|
|
if (!c->isfullscreen)
|
|
arrange(c->mon);
|
|
}
|