[wiki] [sites] Added attachbottom patch || Marshall Mason

From: <git_AT_suckless.org>
Date: Fri, 17 Aug 2018 02:12:43 +0200

commit 0a3bb694ca626f7f2231a8ae24aef07e00c3d46a
Author: Marshall Mason <marshallmason2_AT_gmail.com>
Date: Thu Aug 16 17:12:06 2018 -0700

    Added attachbottom patch

diff --git a/dwm.suckless.org/patches/attachbottom/dwm-attachbottom-6.1.diff b/dwm.suckless.org/patches/attachbottom/dwm-attachbottom-6.1.diff
new file mode 100644
index 00000000..71d092fe
--- /dev/null
+++ b/dwm.suckless.org/patches/attachbottom/dwm-attachbottom-6.1.diff
_AT_@ -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
+_AT_@ -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);
+_AT_@ -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;
+_AT_@ -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);
+_AT_@ -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);
+_AT_@ -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
new file mode 100644
index 00000000..bff3f551
--- /dev/null
+++ b/dwm.suckless.org/patches/attachbottom/index.md
_AT_@ -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_AT_gmail.com>`
Received on Fri Aug 17 2018 - 02:12:43 CEST

This archive was generated by hypermail 2.3.0 : Fri Aug 17 2018 - 02:24:33 CEST