commit 53532e1a5baba6a97f39b84d3fa778a2dd0cde32
parent 33e2c3c6fd897ce0de293c1124ef938ed803ed73
Author: Chris Down <chris@chrisdown.name>
Date: Thu, 20 Feb 2014 11:49:56 +0800
dwm patches: Add "alwaysfullscreen" patch
Diffstat:
2 files changed, 31 insertions(+), 0 deletions(-)
diff --git a/dwm.suckless.org/patches/alwaysfullscreen.md b/dwm.suckless.org/patches/alwaysfullscreen.md
@@ -0,0 +1,18 @@
+alwaysfullscreen
+================
+
+Description
+-----------
+
+Do not allow focus to drift from the active fullscreen client when using
+focusstack().
+
+Download
+--------
+
+* [dwm-cdec978-alwaysfullscreen.diff](dwm-cdec978-alwaysfullscreen.diff) (323b) (20140220)
+
+Author
+------
+
+* [Chris Down](https://chrisdown.name) (cdown) <chris@chrisdown.name>
diff --git a/dwm.suckless.org/patches/dwm-cdec978-alwaysfullscreen.diff b/dwm.suckless.org/patches/dwm-cdec978-alwaysfullscreen.diff
@@ -0,0 +1,13 @@
+diff --git a/dwm.c b/dwm.c
+index 1bbb4b3..fe5069d 100644
+--- a/dwm.c
++++ b/dwm.c
+@@ -829,7 +829,7 @@ void
+ 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);