2019-09-05 23:27:33 +02:00
|
|
|
void
|
2019-11-21 12:09:05 +01:00
|
|
|
togglefullscreen(const Arg *arg)
|
|
|
|
{
|
2020-09-05 14:20:53 +02:00
|
|
|
Client *c = selmon->sel;
|
|
|
|
if (!c)
|
2020-09-05 11:38:09 +02:00
|
|
|
return;
|
2019-09-05 23:27:33 +02:00
|
|
|
|
2020-09-13 13:35:15 +02:00
|
|
|
#if FAKEFULLSCREEN_CLIENT_PATCH
|
|
|
|
if (c->fakefullscreen == 1) { // fake fullscreen --> fullscreen
|
2020-09-05 14:20:53 +02:00
|
|
|
c->fakefullscreen = 2;
|
2020-09-13 13:35:15 +02:00
|
|
|
setfullscreen(c, 1);
|
|
|
|
} else
|
|
|
|
setfullscreen(c, !c->isfullscreen);
|
|
|
|
#else
|
2020-09-05 14:20:53 +02:00
|
|
|
setfullscreen(c, !c->isfullscreen);
|
2020-09-13 13:35:15 +02:00
|
|
|
#endif // FAKEFULLSCREEN_CLIENT_PATCH
|
2020-09-05 11:38:09 +02:00
|
|
|
}
|