dwm/patch/togglefullscreen.c

17 lines
409 B
C
Raw Normal View History

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