summaryrefslogtreecommitdiff
path: root/dwm.c
diff options
context:
space:
mode:
authorJake Koroman <jake@jakekoroman.com>2025-10-18 10:03:25 -0400
committerJake Koroman <jake@jakekoroman.com>2025-10-18 10:03:25 -0400
commita61f5fe10e7ddefe2e23cefab59ba2e0ece36ac5 (patch)
tree3e2cfab0430c0875797ab504d4bde907bf3bbda9 /dwm.c
parent824ebb2d3428f4050d06bb140c98c6e23f22b5bc (diff)
patch: applied actualfullscreen.HEADmaster
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 9fc3021..be9e5b2 100644
--- a/dwm.c
+++ b/dwm.c
@@ -219,6 +219,7 @@ static void tag(const Arg *arg);
static void tagmon(const Arg *arg);
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);
@@ -1837,6 +1838,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;