From 7df6e28325bdd48b3ad6a38b3f63fe8519b8cf8f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Romain=20Gon=C3=A7alves?= Date: Sun, 21 Nov 2021 14:20:26 +0100 Subject: patches: Apply actualfullscreen --- dwm.c | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'dwm.c') diff --git a/dwm.c b/dwm.c index 1443802..7fb67f1 100644 --- a/dwm.c +++ b/dwm.c @@ -210,6 +210,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); @@ -1734,6 +1735,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