Xinqi Bao's Git
projects
/
dwm.git
/ commitdiff
summary
|
log
|
commit
|
diff
|
tree
raw
|
patch
|
inline
| side by side (parent:
6f20315
)
applied sanders patch of not manipulating sel
author
Anselm R. Garbe <
[email protected]
>
Fri, 8 Sep 2006 06:19:54 +0000
(08:19 +0200)
committer
Anselm R. Garbe <
[email protected]
>
Fri, 8 Sep 2006 06:19:54 +0000
(08:19 +0200)
client.c
patch
|
blob
|
history
view.c
patch
|
blob
|
history
diff --git
a/client.c
b/client.c
index
49229a7
..
6524c06
100644
(file)
--- a/
client.c
+++ b/
client.c
@@
-414,14
+414,16
@@
togglemax(Arg *arg)
void
unmanage(Client *c)
{
void
unmanage(Client *c)
{
+ Client *nc;
+
XGrabServer(dpy);
XSetErrorHandler(xerrordummy);
detach(c);
detachstack(c);
if(sel == c) {
XGrabServer(dpy);
XSetErrorHandler(xerrordummy);
detach(c);
detachstack(c);
if(sel == c) {
- for(
sel = stack; sel && !isvisible(sel); sel = sel
->snext);
- focus(
sel
);
+ for(
nc = stack; nc && !isvisible(nc); nc = nc
->snext);
+ focus(
nc
);
}
XUngrabButton(dpy, AnyButton, AnyModifier, c->win);
}
XUngrabButton(dpy, AnyButton, AnyModifier, c->win);
diff --git
a/view.c
b/view.c
index
5cbab08
..
3e78661
100644
(file)
--- a/
view.c
+++ b/
view.c
@@
-77,8
+77,8
@@
dofloat(Arg *arg)
ban(c);
}
if(!sel || !isvisible(sel)) {
ban(c);
}
if(!sel || !isvisible(sel)) {
- for(
sel = stack; sel && !isvisible(sel); sel = sel
->snext);
- focus(
sel
);
+ for(
c = stack; c && !isvisible(c); c = c
->snext);
+ focus(
c
);
}
restack();
}
}
restack();
}
@@
-141,8
+141,8
@@
dotile(Arg *arg)
ban(c);
}
if(!sel || !isvisible(sel)) {
ban(c);
}
if(!sel || !isvisible(sel)) {
- for(
sel = stack; sel && !isvisible(sel); sel = sel
->snext);
- focus(
sel
);
+ for(
c = stack; c && !isvisible(c); c = c
->snext);
+ focus(
c
);
}
restack();
}
}
restack();
}