From 36d9bb1c4a16654fb6223b4e350d06660f7a1062 Mon Sep 17 00:00:00 2001 From: tsxv478 Date: Tue, 14 Feb 2023 17:45:37 +0300 Subject: actual fullscreen --- dwm.c | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'dwm.c') diff --git a/dwm.c b/dwm.c index 0e9bc70..9b77f13 100644 --- a/dwm.c +++ b/dwm.c @@ -237,6 +237,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 togglegaps(const Arg *arg); static void toggletag(const Arg *arg); static void toggleview(const Arg *arg); @@ -2007,6 +2008,13 @@ togglegaps(const Arg *arg) arrange(NULL); } +void +togglefullscr(const Arg *arg) +{ + if(selmon->sel) + setfullscreen(selmon->sel, !selmon->sel->isfullscreen); +} + void toggletag(const Arg *arg) { -- cgit v1.2.3