summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAnselm R. Garbe <garbeam@gmail.com>2007-08-16 18:30:25 +0200
committerAnselm R. Garbe <garbeam@gmail.com>2007-08-16 18:30:25 +0200
commite40448fd6340620354d82d801d975eaa53dbd924 (patch)
treefb95ee30610432a48c169b351d9e5cc5a4aa9291
parentmade tag/view/toggle{tag,view} work on pointer to tags-array, there was the n... (diff)
downloaddwm-e40448fd6340620354d82d801d975eaa53dbd924.tar.gz
dwm-e40448fd6340620354d82d801d975eaa53dbd924.zip
fixed the issue observed by various people, that clients appeared on empty tags
-rw-r--r--client.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/client.c b/client.c
index 22408f2..c6cf770 100644
--- a/client.c
+++ b/client.c
@@ -227,9 +227,7 @@ manage(Window w, XWindowAttributes *wa) {
227 attach(c); 227 attach(c);
228 attachstack(c); 228 attachstack(c);
229 XMoveResizeWindow(dpy, c->win, c->x, c->y, c->w, c->h); /* some windows require this */ 229 XMoveResizeWindow(dpy, c->win, c->x, c->y, c->w, c->h); /* some windows require this */
230 setclientstate(c, IconicState); 230 ban(c);
231 c->isbanned = True;
232 focus(c);
233 arrange(); 231 arrange();
234} 232}
235 233
@@ -325,7 +323,8 @@ unmanage(Client *c, long state) {
325 XSync(dpy, False); 323 XSync(dpy, False);
326 XSetErrorHandler(xerror); 324 XSetErrorHandler(xerror);
327 XUngrabServer(dpy); 325 XUngrabServer(dpy);
328 arrange(); 326 if(state != NormalState)
327 arrange();
329} 328}
330 329
331void 330void