mirror of
https://github.com/bakkeby/dwm-flexipatch
synced 2024-11-09 01:10:26 +00:00
19 lines
389 B
C
19 lines
389 B
C
void
|
|
togglefullscreen(const Arg *arg)
|
|
{
|
|
Client *c = selmon->sel;
|
|
if (!c)
|
|
return;
|
|
|
|
#if FAKEFULLSCREEN_CLIENT_PATCH && !FAKEFULLSCREEN_PATCH
|
|
if (c->fakefullscreen == 1) { // fake fullscreen --> fullscreen
|
|
c->fakefullscreen = 2;
|
|
setfullscreen(c, 1);
|
|
} else
|
|
setfullscreen(c, !c->isfullscreen);
|
|
#else
|
|
setfullscreen(c, !c->isfullscreen);
|
|
#endif // FAKEFULLSCREEN_CLIENT_PATCH
|
|
}
|
|
|