Introduction
Introduction Statistics Contact Development Disclaimer Help
tpop on heretag - dwm - [fork] customized build of dwm, the dynamic window mana…
git clone git://src.adamsgaard.dk/dwm
Log
Files
Refs
README
LICENSE
---
commit 0aaa9a21f334a5c75b7efce2712384f57bd370cd
parent 4f8b08d330a6c377ab919f48b8e922d1c5ded601
Author: Anselm R. Garbe <[email protected]>
Date: Tue, 18 Jul 2006 11:45:32 +0200
pop on heretag
Diffstat:
M client.c | 21 ++++++++++++++-------
M dwm.h | 1 +
M tag.c | 2 +-
3 files changed, 16 insertions(+), 8 deletions(-)
---
diff --git a/client.c b/client.c
t@@ -268,6 +268,18 @@ maximize(Arg *arg)
}
void
+pop(Client *c)
+{
+ Client **l;
+ for(l = &clients; *l && *l != c; l = &(*l)->next);
+ *l = c->next;
+
+ c->next = clients; /* pop */
+ clients = c;
+ arrange(NULL);
+}
+
+void
resize(Client *c, Bool inc)
{
XConfigureEvent e;
t@@ -405,7 +417,7 @@ unmanage(Client *c)
void
zoom(Arg *arg)
{
- Client **l, *c;
+ Client *c;
if(!sel)
return;
t@@ -415,11 +427,6 @@ zoom(Arg *arg)
sel = c;
}
- for(l = &clients; *l && *l != sel; l = &(*l)->next);
- *l = sel->next;
-
- sel->next = clients; /* pop */
- clients = sel;
- arrange(NULL);
+ pop(sel);
focus(sel);
}
diff --git a/dwm.h b/dwm.h
t@@ -118,6 +118,7 @@ extern void killclient(Arg *arg);
extern void lower(Client *c);
extern void manage(Window w, XWindowAttributes *wa);
extern void maximize(Arg *arg);
+extern void pop(Client *c);
extern void resize(Client *c, Bool inc);
extern void setsize(Client *c);
extern void settitle(Client *c);
diff --git a/tag.c b/tag.c
t@@ -136,7 +136,7 @@ heretag(Arg *arg)
for(i = 0; i < TLast; i++)
c->tags[i] = NULL;
c->tags[tsel] = tags[tsel];
- arrange(NULL);
+ pop(c);
focus(c);
}
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.