diff --git a/dwm.c b/dwm.c index 4465af1..7b63b1f 100644 --- a/dwm.c +++ b/dwm.c @@ -211,6 +211,7 @@ static void tagmon(const Arg *arg); static void tile(Monitor *); static void togglebar(const Arg *arg); static void togglefloating(const Arg *arg); +static void togglefullscreen(const Arg *arg); static void toggletag(const Arg *arg); static void toggleview(const Arg *arg); static void unfocus(Client *c, int setfocus); @@ -1719,6 +1720,15 @@ togglefloating(const Arg *arg) arrange(selmon); } +void +togglefullscreen(const Arg *arg) +{ + if (!selmon->sel) + return; + + setfullscreen(selmon->sel, !selmon->sel->isfullscreen); +} + void toggletag(const Arg *arg) { -- 2.21.0