2019-11-21 11:15:16 +00:00
|
|
|
void
|
|
|
|
togglefakefullscreen(const Arg *arg)
|
|
|
|
{
|
2020-09-10 07:41:00 +00:00
|
|
|
Client *c = selmon->sel;
|
|
|
|
if (!c)
|
|
|
|
return;
|
2019-11-21 11:15:16 +00:00
|
|
|
|
2020-09-13 11:35:15 +00:00
|
|
|
if (c->fakefullscreen != 1 && c->isfullscreen) { // exit fullscreen --> fake fullscreen
|
|
|
|
c->fakefullscreen = 2;
|
|
|
|
setfullscreen(c, 0);
|
|
|
|
} else if (c->fakefullscreen == 1) {
|
|
|
|
setfullscreen(c, 0);
|
|
|
|
c->fakefullscreen = 0;
|
2020-09-10 07:41:00 +00:00
|
|
|
} else {
|
|
|
|
c->fakefullscreen = 1;
|
2020-09-13 11:35:15 +00:00
|
|
|
setfullscreen(c, 1);
|
2020-09-10 07:41:00 +00:00
|
|
|
}
|
2020-09-16 09:07:23 +00:00
|
|
|
}
|