diff --git a/README.md b/README.md index b58163e..ab24b36 100644 --- a/README.md +++ b/README.md @@ -56,4 +56,5 @@ and (re)compiling the source code. Most patches can be found on the suckless website: [https://dwm.suckless.org/patches/] * [actualfullscreen](https://dwm.suckless.org/patches/actualfullscreen/) - Actually toggle fullscreen for a window, instead of toggling the status bar and the monocle layout +* [alwaysfullscreen](https://dwm.suckless.org/patches/alwaysfullscreen/) - Do not allow the focus to drift from the active fullscreen client when using focusstack() * [fixborders](https://dwm.suckless.org/patches/alpha/) - Make borders opaque diff --git a/dwm.c b/dwm.c index 473f421..2bf859e 100644 --- a/dwm.c +++ b/dwm.c @@ -836,7 +836,7 @@ focusstack(const Arg *arg) { Client *c = NULL, *i; - if (!selmon->sel) + if (!selmon->sel || selmon->sel->isfullscreen) return; if (arg->i > 0) { for (c = selmon->sel->next; c && !ISVISIBLE(c); c = c->next); diff --git a/patches/dwm-alwaysfullscreen-6.1.diff b/patches/dwm-alwaysfullscreen-6.1.diff new file mode 100644 index 0000000..19882e6 --- /dev/null +++ b/patches/dwm-alwaysfullscreen-6.1.diff @@ -0,0 +1,13 @@ +diff --git a/dwm.c b/dwm.c +index 0362114..a5cab76 100644 +--- a/dwm.c ++++ b/dwm.c +@@ -847,7 +847,7 @@ focusstack(const Arg *arg) + { + Client *c = NULL, *i; + +- if (!selmon->sel) ++ if (!selmon->sel || selmon->sel->isfullscreen) + return; + if (arg->i > 0) { + for (c = selmon->sel->next; c && !ISVISIBLE(c); c = c->next);