From 7be494dd01bfc1ed0be3d4a2fcd5f9e6b37e2314 Mon Sep 17 00:00:00 2001 From: krolyxon Date: Sun, 11 Sep 2022 02:46:59 +0530 Subject: actual fullscreen patch --- dwm.c | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'dwm.c') diff --git a/dwm.c b/dwm.c index 331c78b..158b035 100644 --- a/dwm.c +++ b/dwm.c @@ -235,6 +235,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); @@ -1869,6 +1870,13 @@ togglescratch(const Arg *arg) spawn(arg); } +void +togglefullscr(const Arg *arg) +{ + if(selmon->sel) + setfullscreen(selmon->sel, !selmon->sel->isfullscreen); +} + void toggletag(const Arg *arg) { -- cgit v1.2.3