26 lines
669 B
Diff
26 lines
669 B
Diff
diff --git a/dwm.c b/dwm.c
|
|
index f1d86b2..17b595a 100644
|
|
--- a/dwm.c
|
|
+++ b/dwm.c
|
|
@@ -211,6 +211,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 togglefullscreen(const Arg *arg);
|
|
static void toggletag(const Arg *arg);
|
|
static void toggleview(const Arg *arg);
|
|
static void unfocus(Client *c, int setfocus);
|
|
@@ -1735,6 +1736,12 @@ togglefloating(const Arg *arg)
|
|
arrange(selmon);
|
|
}
|
|
|
|
+void togglefullscreen(const Arg *arg)
|
|
+{
|
|
+ if(selmon->sel)
|
|
+ setfullscreen(selmon->sel, !selmon->sel->isfullscreen);
|
|
+}
|
|
+
|
|
void
|
|
toggletag(const Arg *arg)
|
|
{
|