sites

public wiki contents of suckless.org
git clone git://git.suckless.org/sites
Log | Files | Refs

commit 0a3bb694ca626f7f2231a8ae24aef07e00c3d46a
parent 149f93dda4c91ebca34214a51ce765996d174ad1
Author: Marshall Mason <marshallmason2@gmail.com>
Date:   Thu, 16 Aug 2018 17:12:06 -0700

Added attachbottom patch

Diffstat:
dwm.suckless.org/patches/attachbottom/dwm-attachbottom-6.1.diff | 60++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
dwm.suckless.org/patches/attachbottom/index.md | 19+++++++++++++++++++
2 files changed, 79 insertions(+), 0 deletions(-)

diff --git a/dwm.suckless.org/patches/attachbottom/dwm-attachbottom-6.1.diff b/dwm.suckless.org/patches/attachbottom/dwm-attachbottom-6.1.diff @@ -0,0 +1,60 @@ +Binary files dwm/drw.o and dwm.patched/drw.o differ +Binary files dwm/dwm and dwm.patched/dwm differ +diff -ruN dwm/dwm.c dwm.patched/dwm.c +--- dwm/dwm.c 2018-05-22 20:05:47.208417141 -0700 ++++ dwm.patched/dwm.c 2018-06-20 15:08:07.380496725 -0700 +@@ -147,6 +147,7 @@ + static void arrange(Monitor *m); + static void arrangemon(Monitor *m); + static void attach(Client *c); ++static void attachbelow(Client *c); + static void attachstack(Client *c); + static void buttonpress(XEvent *e); + static void checkotherwm(void); +@@ -407,6 +408,17 @@ + } + + void ++attachbelow(Client *c) ++{ ++ Client *below = c->mon->clients; ++ for (; below && below->next; below = below->next); ++ if (below) ++ below->next = c; ++ else ++ c->mon->clients = c; ++} ++ ++void + attachstack(Client *c) + { + c->snext = c->mon->stack; +@@ -1065,7 +1077,7 @@ + c->isfloating = c->oldstate = trans != None || c->isfixed; + if (c->isfloating) + XRaiseWindow(dpy, c->win); +- attach(c); ++ attachbelow(c); + attachstack(c); + XChangeProperty(dpy, root, netatom[NetClientList], XA_WINDOW, 32, PropModeAppend, + (unsigned char *) &(c->win), 1); +@@ -1420,7 +1432,7 @@ + detachstack(c); + c->mon = m; + c->tags = m->tagset[m->seltags]; /* assign tags of target monitor */ +- attach(c); ++ attachbelow(c); + attachstack(c); + focus(NULL); + arrange(NULL); +@@ -1900,7 +1912,7 @@ + m->clients = c->next; + detachstack(c); + c->mon = mons; +- attach(c); ++ attachbelow(c); + attachstack(c); + } + if (m == selmon) +Binary files dwm/dwm.o and dwm.patched/dwm.o differ +Binary files dwm/util.o and dwm.patched/util.o differ diff --git a/dwm.suckless.org/patches/attachbottom/index.md b/dwm.suckless.org/patches/attachbottom/index.md @@ -0,0 +1,19 @@ +attachbottom +============ + +Description +----------- + +New clients attach at the bottom of the stack instead of the top. + +I find this to be the least obtrusive attachment behavior, since no existing clients are ever moved, only resized. + +Download +-------- + + * [dwm-attachbottom-6.1.diff](dwm-attachbottm-6.1.diff) + +Authors +------- + + * Marshall Mason - `<marshallmason2@gmail.com>`