Xinqi Bao's Git

patch: actualfullscreen
[dwm.git] / dwm.c
diff --git a/dwm.c b/dwm.c
index 1348e47..556d934 100644 (file)
--- 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)
 {