X-Git-Url: https://git.xinqibao.xyz/dwm.git/blobdiff_plain/6a95d0428757af844c315e357d743e3d42ae72b5..41a4e1809ca3051981f2f07219f1dcc8428ae657:/dwm.c diff --git a/dwm.c b/dwm.c index 1348e47..556d934 100644 --- a/dwm.c +++ b/dwm.c @@ -228,6 +228,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 togglefullscr(const Arg *arg); static void toggletag(const Arg *arg); static void toggleview(const Arg *arg); static void unfocus(Client *c, int setfocus); @@ -1843,6 +1844,13 @@ togglefloating(const Arg *arg) arrange(selmon); } +void +togglefullscr(const Arg *arg) +{ + if(selmon->sel) + setfullscreen(selmon->sel, !selmon->sel->isfullscreen); +} + void toggletag(const Arg *arg) {