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