alwaysfullscreen patch
This commit is contained in:
@@ -56,4 +56,5 @@ and (re)compiling the source code.
|
|||||||
Most patches can be found on the suckless website: [https://dwm.suckless.org/patches/]
|
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
|
* [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
|
* [fixborders](https://dwm.suckless.org/patches/alpha/) - Make borders opaque
|
||||||
|
2
dwm.c
2
dwm.c
@@ -836,7 +836,7 @@ focusstack(const Arg *arg)
|
|||||||
{
|
{
|
||||||
Client *c = NULL, *i;
|
Client *c = NULL, *i;
|
||||||
|
|
||||||
if (!selmon->sel)
|
if (!selmon->sel || selmon->sel->isfullscreen)
|
||||||
return;
|
return;
|
||||||
if (arg->i > 0) {
|
if (arg->i > 0) {
|
||||||
for (c = selmon->sel->next; c && !ISVISIBLE(c); c = c->next);
|
for (c = selmon->sel->next; c && !ISVISIBLE(c); c = c->next);
|
||||||
|
13
patches/dwm-alwaysfullscreen-6.1.diff
Normal file
13
patches/dwm-alwaysfullscreen-6.1.diff
Normal file
@@ -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);
|
Reference in New Issue
Block a user