alwaysfullscreen patch

This commit is contained in:
Sravan Balaji
2020-11-23 20:36:39 -05:00
parent 92b735ffef
commit 7d0f7c5f99
3 changed files with 15 additions and 1 deletions

View File

@@ -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

2
dwm.c
View File

@@ -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);

View 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);