commit 488030a9c4698d92866d4cf13be288a34f848adc
parent 6b2d238e0e9427a4f91a85fcd2fa1f1cddcf969b
Author: AndrewLockVI <andrew@laack.co>
Date: Mon, 17 Feb 2025 09:31:17 -0600
Undid attach bottom change; I don't really like that, I think I would prefer to have the next window inserted below the focused one
Diffstat:
| M | dwm.c | | | 17 | ++++------------- |
1 file changed, 4 insertions(+), 13 deletions(-)
diff --git a/dwm.c b/dwm.c
@@ -150,7 +150,6 @@ static void arrange(Monitor *m);
static void arrangemon(Monitor *m);
static void attach(Client *c);
static void attachstack(Client *c);
-static void attachbottom(Client *c);
static void buttonpress(XEvent *e);
static void checkotherwm(void);
static void cleanup(void);
@@ -416,14 +415,6 @@ 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)
@@ -1082,7 +1073,7 @@ manage(Window w, XWindowAttributes *wa)
c->isfloating = c->oldstate = trans != None || c->isfixed;
if (c->isfloating)
XRaiseWindow(dpy, c->win);
- attachbottom(c);
+ attach(c);
attachstack(c);
XChangeProperty(dpy, root, netatom[NetClientList], XA_WINDOW, 32, PropModeAppend,
(unsigned char *) &(c->win), 1);
@@ -1221,7 +1212,7 @@ void
pop(Client *c)
{
detach(c);
- attachbottom(c);
+ attach(c);
focus(c);
arrange(c->mon);
}
@@ -1432,7 +1423,7 @@ sendmon(Client *c, Monitor *m)
detachstack(c);
c->mon = m;
c->tags = m->tagset[m->seltags]; /* assign tags of target monitor */
- attachbottom(c);
+ attach(c);
attachstack(c);
focus(NULL);
arrange(NULL);
@@ -1946,7 +1937,7 @@ updategeom(void)
m->clients = c->next;
detachstack(c);
c->mon = mons;
- attachbottom(c);
+ attach(c);
attachstack(c);
}
if (m == selmon)