summaryrefslogtreecommitdiff
path: root/dwm.c
diff options
context:
space:
mode:
authorJackson Taylor <jackson@jacksontaylor.xyz>2022-06-18 21:38:11 -0400
committerJackson Taylor <jackson@jacksontaylor.xyz>2022-06-18 21:38:11 -0400
commitf3cb23386035ea676cba4515094d22ad6e99ca9c (patch)
tree592e2a779fa451366b18032ed7a5857fe257c092 /dwm.c
parentd3f93c7c1a13a2a78f04fb41ad1935525df948db (diff)
Add actual 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 5646a5c6..54200df9 100644
--- a/dwm.c
+++ b/dwm.c
@@ -212,6 +212,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);
@@ -1729,6 +1730,13 @@ togglefloating(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;