Introduction
Introduction Statistics Contact Development Disclaimer Help
tremoved artefacts of single-linked list (thanx to Jukka, I must have been mad)…
git clone git://src.adamsgaard.dk/dwm
Log
Files
Refs
README
LICENSE
---
commit d9a6a3b5d2e0152d5746723fcd482994602f292e
parent 7c2e3bb67d07dd1822887bc1ae35d4cd40a6e481
Author: [email protected] <unknown>
Date: Tue, 1 Aug 2006 16:14:17 +0200
removed artefacts of single-linked list (thanx to Jukka, I must have been mad)
Diffstat:
M client.c | 11 +++--------
M dwm.1 | 2 +-
2 files changed, 4 insertions(+), 9 deletions(-)
---
diff --git a/client.c b/client.c
t@@ -416,20 +416,18 @@ togglemax(Arg *arg)
void
unmanage(Client *c)
{
- Client **l;
-
XGrabServer(dpy);
XSetErrorHandler(xerrordummy);
XUngrabButton(dpy, AnyButton, AnyModifier, c->win);
XDestroyWindow(dpy, c->title);
- for(l = &clients; *l && *l != c; l = &(*l)->next);
if(c->prev)
c->prev->next = c->next;
if(c->next)
c->next->prev = c->prev;
- *l = c->next;
+ if(c == clients)
+ clients = c->next;
if(sel == c) {
sel = getnext(c->next);
if(!sel)
t@@ -450,7 +448,7 @@ unmanage(Client *c)
void
zoom(Arg *arg)
{
- Client *c, **l;
+ Client *c;
if(!sel)
return;
t@@ -461,13 +459,10 @@ zoom(Arg *arg)
}
/* pop */
- for(l = &clients; *l && *l != sel; l = &(*l)->next);
if(sel->prev)
sel->prev->next = sel->next;
if(sel->next)
sel->next->prev = sel->prev;
- *l = sel->next;
-
sel->prev = NULL;
if(clients)
clients->prev = sel;
diff --git a/dwm.1 b/dwm.1
t@@ -1,4 +1,4 @@
-.TH DWM 1 dwm-0.5
+.TH DWM 1 dwm-0.6
.SH NAME
dwm \- dynamic window manager
.SH SYNOPSIS
You are viewing proxied material from mx1.adamsgaard.dk. The copyright of proxied material belongs to its original authors. Any comments or complaints in relation to proxied material should be directed to the original authors of the content concerned. Please see the disclaimer for more details.