From a8205b5145df5067059894d2f3a370f1fc3cdc39 Mon Sep 17 00:00:00 2001 From: BitHeaven <33015545+BitHeaven-Official@users.noreply.github.com> Date: Wed, 28 Sep 2022 02:19:37 +0500 Subject: [PATCH] Add toggle fullscreen --- dwm.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/dwm.c b/dwm.c index efebbcf..bec1395 100644 --- a/dwm.c +++ b/dwm.c @@ -214,6 +214,7 @@ static void tagmon(const Arg *arg); static void tile(Monitor *m); static void togglebar(const Arg *arg); static void togglefloating(const Arg *arg); +static void togglefullscr(const Arg *arg); static void togglealwaysontop(const Arg *arg); static void toggletag(const Arg *arg); static void toggleview(const Arg *arg); @@ -1872,6 +1873,13 @@ togglefloating(const Arg *arg) arrange(selmon); } +void +togglefullscr(const Arg *arg) +{ + if(selmon->sel) + setfullscreen(selmon->sel, !selmon->sel->isfullscreen); +} + void togglealwaysontop(const Arg *arg) {