You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
dwm-flexipatch/patch/togglefullscreen.c

17 lines
384 B
C

void
togglefullscreen(const Arg *arg)
{
if (!selmon->sel)
return;
#if FAKEFULLSCREEN_CLIENT_PATCH
if (selmon->sel->fakefullscreen) {
selmon->sel->fakefullscreen = 0;
if (selmon->sel->isfullscreen) {
selmon->sel->isfullscreen = 0;
}
}
#endif // FAKEFULLSCREEN_CLIENT_PATCH
setfullscreen(selmon->sel, !selmon->sel->isfullscreen);
}