From 082875899a2d411838a5cf98e30bf3f7b9378021 Mon Sep 17 00:00:00 2001 From: Aryadev Chavali Date: Mon, 24 Jun 2024 00:25:25 +0100 Subject: Remove attachaside --- dwm.c | 25 ------------------------- 1 file changed, 25 deletions(-) (limited to 'dwm.c') diff --git a/dwm.c b/dwm.c index 0705c4a..46e6f84 100644 --- a/dwm.c +++ b/dwm.c @@ -151,7 +151,6 @@ static int applysizehints(Client *c, int *x, int *y, int *w, int *h, int interac static void arrange(Monitor *m); static void arrangemon(Monitor *m); static void attach(Client *c); -static void attachaside(Client *c); static void attachstack(Client *c); static void buttonpress(XEvent *e); static void checkotherwm(void); @@ -192,7 +191,6 @@ static void maprequest(XEvent *e); static void monocle(Monitor *m); static void motionnotify(XEvent *e); static void movemouse(const Arg *arg); -static Client *nexttagged(Client *c); static Client *nexttiled(Client *c); static void pop(Client *c); static void propertynotify(XEvent *e); @@ -438,17 +436,6 @@ attach(Client *c) c->mon->clients = c; } -void -attachaside(Client *c) { - Client *at = nexttagged(c); - if(!at) { - attach(c); - return; - } - c->next = at->next; - at->next = c; -} - void attachstack(Client *c) { @@ -1206,7 +1193,6 @@ manage(Window w, XWindowAttributes *wa) c->isfloating = c->oldstate = trans != None || c->isfixed; if (c->isfloating) XRaiseWindow(dpy, c->win); - /* attachaside(c); */ attach(c); attachstack(c); XChangeProperty(dpy, root, netatom[NetClientList], XA_WINDOW, 32, PropModeAppend, @@ -1339,16 +1325,6 @@ movemouse(const Arg *arg) } } -Client * -nexttagged(Client *c) { - Client *walked = c->mon->clients; - for(; - walked && (walked->isfloating || !ISVISIBLEONTAG(walked, c->tags)); - walked = walked->next - ); - return walked; -} - Client * nexttiled(Client *c) { @@ -1574,7 +1550,6 @@ sendmon(Client *c, Monitor *m) detachstack(c); c->mon = m; c->tags = m->tagset[m->seltags]; /* assign tags of target monitor */ - /* attachaside(c); */ attach(c); attachstack(c); focus(NULL); -- cgit v1.2.3-13-gbd6f