[wiki] [sites] [dwm][patch][attachbottom] patch file for 6.3 || HSQ
commit 31af8ced86f1247b4ca83c4d5cc3a9078ebe2a4c
Author: HSQ <info_AT_tty.red>
Date: Wed Aug 17 22:26:58 2022 +0200
[dwm][patch][attachbottom] patch file for 6.3
diff --git a/dwm.suckless.org/patches/attachbottom/dwm-attachbottom-6.3.diff b/dwm.suckless.org/patches/attachbottom/dwm-attachbottom-6.3.diff
new file mode 100644
index 00000000..c3955f9b
--- /dev/null
+++ b/dwm.suckless.org/patches/attachbottom/dwm-attachbottom-6.3.diff
_AT_@ -0,0 +1,54 @@
+diff -up dwm-6.3/dwm.c dwm-6.3-attachbottom/dwm.c
+--- dwm-6.3/dwm.c 2022-01-07 12:42:18.000000000 +0100
++++ dwm-6.3-attachbottom/dwm.c 2022-08-17 22:14:41.813809073 +0200
+_AT_@ -147,6 +147,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_@ -1066,7 +1076,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_@ -1421,7 +1431,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_@ -1903,7 +1913,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 cbef78e4..f75d3e49 100644
--- a/dwm.suckless.org/patches/attachbottom/index.md
+++ b/dwm.suckless.org/patches/attachbottom/index.md
_AT_@ -10,6 +10,7 @@ clients are ever moved, only resized.
Download
--------
+* [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)
Received on Wed Aug 17 2022 - 22:28:12 CEST
This archive was generated by hypermail 2.3.0
: Wed Aug 17 2022 - 22:36:51 CEST