dwm-flexipatch/patch/togglefullscreen.c

17 lines
409 B
C
Raw Normal View History

2019-09-05 21:27:33 +00:00
void
2019-11-21 11:09:05 +00:00
togglefullscreen(const Arg *arg)
{
2019-09-05 21:27:33 +00:00
if (!selmon->sel)
return;
#if !FAKEFULLSCREEN_PATCH && FAKEFULLSCREEN_CLIENT_PATCH
2019-11-21 11:09:05 +00:00
if (selmon->sel->fakefullscreen) {
selmon->sel->fakefullscreen = 0;
if (selmon->sel->isfullscreen) {
selmon->sel->isfullscreen = 0;
}
}
#endif // FAKEFULLSCREEN_CLIENT_PATCH
2019-09-05 21:27:33 +00:00
setfullscreen(selmon->sel, !selmon->sel->isfullscreen);
}