mirror of
https://github.com/mintycube/dwm.git
synced 2024-10-22 12:05:45 +00:00
25 lines
573 B
C
25 lines
573 B
C
void
|
|
togglefullscreen(const Arg *arg)
|
|
{
|
|
if (!selmon->sel)
|
|
return;
|
|
|
|
#if !FAKEFULLSCREEN_PATCH && FAKEFULLSCREEN_CLIENT_PATCH
|
|
if (selmon->sel->fakefullscreen == 1) {
|
|
selmon->sel->fakefullscreen = 2;
|
|
if (selmon->sel->isfullscreen) {
|
|
selmon->sel->isfullscreen = 0;
|
|
}
|
|
} else if (selmon->sel->fakefullscreen == 2) {
|
|
selmon->sel->fakefullscreen = 0;
|
|
togglefakefullscreen(NULL);
|
|
arrange(selmon);
|
|
return;
|
|
}
|
|
#endif // FAKEFULLSCREEN_CLIENT_PATCH
|
|
|
|
setfullscreen(selmon->sel, !selmon->sel->isfullscreen);
|
|
if (!selmon->sel->isfullscreen)
|
|
arrange(selmon);
|
|
}
|