dwm

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

commit 73da539a90df3638c46e0a8eb17dc916c4e8185c
parent 336c411392219497f21fa615d2b1570b4619db3c
Author: Luke Smith <luke@lukesmith.xyz>
Date:   Sat, 14 Dec 2019 17:23:48 -0500

true fullscreen patch

Diffstat:
Mconfig.def.h | 1+
Mdwm.c | 8++++++++
2 files changed, 9 insertions(+), 0 deletions(-)

diff --git a/config.def.h b/config.def.h @@ -89,6 +89,7 @@ static Key keys[] = { { MODKEY, XK_o, setlayout, {.v = &layouts[4]} }, { MODKEY, XK_space, setlayout, {0} }, { MODKEY|ShiftMask, XK_space, togglefloating, {0} }, + { MODKEY|ShiftMask, XK_f, togglefullscr, {0} }, { MODKEY, XK_0, view, {.ui = ~0 } }, { MODKEY|ShiftMask, XK_0, tag, {.ui = ~0 } }, { MODKEY, XK_comma, focusmon, {.i = -1 } }, diff --git 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); @@ -1805,6 +1806,13 @@ togglescratch(const Arg *arg) } void +togglefullscr(const Arg *arg) +{ + if(selmon->sel) + setfullscreen(selmon->sel, !selmon->sel->isfullscreen); +} + +void toggletag(const Arg *arg) { unsigned int newtags;