From 4745e69489042e1b33f278809e1f9e831d6704b1 Mon Sep 17 00:00:00 2001 From: eug-vs Date: Thu, 20 Jan 2022 01:27:31 +0300 Subject: patch: actual fullscreen --- dwm.c | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'dwm.c') diff --git a/dwm.c b/dwm.c index 2d5a64d..ea4fa50 100644 --- a/dwm.c +++ b/dwm.c @@ -225,6 +225,7 @@ static Client *termforwin(const Client *c); static void tile(Monitor *); 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); @@ -1811,6 +1812,13 @@ togglefloating(const Arg *arg) arrange(selmon); } +void +togglefullscr(const Arg *arg) +{ + if(selmon->sel) + setfullscreen(selmon->sel, !selmon->sel->isfullscreen); +} + void toggletag(const Arg *arg) { -- cgit v1.2.3