2019-11-21 12:15:16 +01:00
|
|
|
void
|
|
|
|
togglefakefullscreen(const Arg *arg)
|
|
|
|
{
|
2020-09-10 09:41:00 +02:00
|
|
|
Client *c = selmon->sel;
|
|
|
|
if (!c)
|
|
|
|
return;
|
2019-11-21 12:15:16 +01:00
|
|
|
|
2020-09-13 13:35:15 +02: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 09:41:00 +02:00
|
|
|
} else {
|
|
|
|
c->fakefullscreen = 1;
|
2020-09-13 13:35:15 +02:00
|
|
|
setfullscreen(c, 1);
|
2020-09-10 09:41:00 +02:00
|
|
|
}
|
2020-09-16 11:07:23 +02:00
|
|
|
}
|
2021-06-14 07:16:17 +02:00
|
|
|
|