summaryrefslogtreecommitdiff
path: root/dwm.c
diff options
context:
space:
mode:
authorLuke Smith <luke@lukesmith.xyz>2019-12-14 17:23:48 -0500
committerLuke Smith <luke@lukesmith.xyz>2019-12-14 17:23:48 -0500
commit73da539a90df3638c46e0a8eb17dc916c4e8185c (patch)
treeca9dd5fc9d67ea140f9d2939e2a8a1dcb26aaf53 /dwm.c
parent336c411392219497f21fa615d2b1570b4619db3c (diff)
true fullscreen patch
Diffstat (limited to 'dwm.c')
-rw-r--r--dwm.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/dwm.c b/dwm.c
index 2ff8897..f88ac62 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 togglescratch(const Arg *arg);
static void toggletag(const Arg *arg);
static void toggleview(const Arg *arg);
@@ -1805,6 +1806,13 @@ togglescratch(const Arg *arg)
}
void
+togglefullscr(const Arg *arg)
+{
+ if(selmon->sel)
+ setfullscreen(selmon->sel, !selmon->sel->isfullscreen);
+}
+
+void
toggletag(const Arg *arg)
{
unsigned int newtags;