summaryrefslogtreecommitdiff
path: root/dwm.c
diff options
context:
space:
mode:
authorMouad Alami <moadalami40@gmail.com>2023-04-24 16:25:26 +0100
committerMouad Alami <moadalami40@gmail.com>2023-04-24 16:25:26 +0100
commit6aadbc3fc099f99c7ae27f055b280ebf774e919e (patch)
tree3530d1e8125d7d9d2686723bfecdce67672d85ae /dwm.c
parente81f17d4c196aaed6893fd4beed49991caa3e2a4 (diff)
actualfullscreen 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 f1d86b2..e940130 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 togglefullscr(const Arg *arg);
static void toggletag(const Arg *arg);
static void toggleview(const Arg *arg);
static void unfocus(Client *c, int setfocus);
@@ -1736,6 +1737,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;