mirror of
https://github.com/mintycube/dwm.git
synced 2024-10-22 14:05:45 +02:00
18 lines
363 B
C
18 lines
363 B
C
void
|
|
togglefullscreen(const Arg *arg)
|
|
{
|
|
Client *c = selmon->sel;
|
|
if (!c)
|
|
return;
|
|
|
|
#if FAKEFULLSCREEN_CLIENT_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
|
|
}
|