From 73da539a90df3638c46e0a8eb17dc916c4e8185c Mon Sep 17 00:00:00 2001 From: Luke Smith Date: Sat, 14 Dec 2019 17:23:48 -0500 Subject: true fullscreen patch --- dwm.c | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'dwm.c') diff --git a/dwm.c b/dwm.c index 2ff8897..f88ac62 100644 --- a/dwm.c +++ b/dwm.c @@ -228,6 +228,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); @@ -1804,6 +1805,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