[wiki] [sites] Updated my old attachbottom for latest dwm version || Marshall Mason

From: <git_AT_suckless.org>
Date: Sat, 30 May 2026 00:52:35 +0200

commit f59d958400f353df0d1885aa746ee129e7300e9d
Author: Marshall Mason <marshallmason2_AT_gmail.com>
Date: Fri May 29 15:51:06 2026 -0700

    Updated my old attachbottom for latest dwm version

diff --git a/dwm.suckless.org/patches/attachbottom/dwm-attachbottom-6.8.diff b/dwm.suckless.org/patches/attachbottom/dwm-attachbottom-6.8.diff
new file mode 100644
index 00000000..662c98eb
--- /dev/null
+++ b/dwm.suckless.org/patches/attachbottom/dwm-attachbottom-6.8.diff
_AT_@ -0,0 +1,53 @@
+--- dwm-6.8/dwm.c 2026-01-30 02:19:28.660280483 -0800
++++ dwm-6.8-attachbottom/dwm.c 2026-05-29 15:33:49.595818574 -0700
+_AT_@ -146,6 +146,7 @@ static int applysizehints(Client *c, int
+ static void arrange(Monitor *m);
+ static void arrangemon(Monitor *m);
+ static void attach(Client *c);
++static void attachbottom(Client *c);
+ static void attachstack(Client *c);
+ static void buttonpress(XEvent *e);
+ static void checkotherwm(void);
+_AT_@ -408,6 +409,15 @@ attach(Client *c)
+ }
+
+ void
++attachbottom(Client *c)
++{
++ Client **tc;
++ c->next = NULL;
++ for (tc = &c->mon->clients; *tc; tc = &(*tc)->next);
++ *tc = c;
++}
++
++void
+ attachstack(Client *c)
+ {
+ c->snext = c->mon->stack;
+_AT_@ -1074,7 +1084,7 @@ manage(Window w, XWindowAttributes *wa)
+ c->isfloating = c->oldstate = trans != None || c->isfixed;
+ if (c->isfloating)
+ XRaiseWindow(dpy, c->win);
+- attach(c);
++ attachbottom(c);
+ attachstack(c);
+ XChangeProperty(dpy, root, netatom[NetClientList], XA_WINDOW, 32, PropModeAppend,
+ (unsigned char *) &(c->win), 1);
+_AT_@ -1427,7 +1437,7 @@ sendmon(Client *c, Monitor *m)
+ detachstack(c);
+ c->mon = m;
+ c->tags = m->tagset[m->seltags]; /* assign tags of target monitor */
+- attach(c);
++ attachbottom(c);
+ attachstack(c);
+ focus(NULL);
+ arrange(NULL);
+_AT_@ -1915,7 +1925,7 @@ updategeom(void)
+ m->clients = c->next;
+ detachstack(c);
+ c->mon = mons;
+- attach(c);
++ attachbottom(c);
+ attachstack(c);
+ }
+ if (m == selmon)
diff --git a/dwm.suckless.org/patches/attachbottom/index.md b/dwm.suckless.org/patches/attachbottom/index.md
index f75d3e49..c70e6a45 100644
--- a/dwm.suckless.org/patches/attachbottom/index.md
+++ b/dwm.suckless.org/patches/attachbottom/index.md
_AT_@ -10,11 +10,12 @@ clients are ever moved, only resized.
 
 Download
 --------
+* [dwm-attachbottom-6.8.diff](dwm-attachbottom-6.8.diff)
 * [dwm-attachbottom-6.3.diff](dwm-attachbottom-6.3.diff)
 * [dwm-attachbottom-6.2.diff](dwm-attachbottom-6.2.diff)
 * [dwm-attachbottom-20201227-61bb8b2.diff](dwm-attachbottom-20201227-61bb8b2.diff)
 
 Authors
 -------
-* Marshall Mason - `<marshallmason2_AT_gmail.com>` (not using dwm anymore)
+* Marshall Mason - `<marshallmason2_AT_gmail.com>`
 * Szabolcs Szucs - `<contact_AT_szabolcsszucs.com>`
Received on Sat May 30 2026 - 00:52:35 CEST

This archive was generated by hypermail 2.3.0 : Sat May 30 2026 - 01:00:56 CEST