aboutsummaryrefslogtreecommitdiffstats
path: root/dwm.c
diff options
context:
space:
mode:
authorRomain Gonçalves <commit@rgoncalves.se>2021-11-21 14:20:26 +0100
committerRomain Gonçalves <commit@rgoncalves.se>2021-11-21 16:07:48 +0100
commit0fafafcafe2111a123385a1feb953a06e318d887 (patch)
tree51a90d97eef0181f4edab6721c661d71154dbd49 /dwm.c
parentd01d7cf80cced38c225a22b50ea36869a27b1747 (diff)
downloaddwm-0fafafcafe2111a123385a1feb953a06e318d887.tar.gz
patches: Apply actualfullscreen
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 5e4d494..a4ef3ad 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);
@@ -1723,6 +1724,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;
remember that computers suck.