mirror of
https://github.com/bakkeby/dwm-flexipatch
synced 2024-11-15 00:15:07 +00:00
19 lines
376 B
C
19 lines
376 B
C
void
|
|
togglefakefullscreen(const Arg *arg)
|
|
{
|
|
Client *c = selmon->sel;
|
|
if (!c)
|
|
return;
|
|
|
|
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;
|
|
} else {
|
|
c->fakefullscreen = 1;
|
|
setfullscreen(c, 1);
|
|
}
|
|
}
|