summaryrefslogtreecommitdiffstats
path: root/client.c
diff options
context:
space:
mode:
authorAnselm R. Garbe <garbeam@wmii.de>2006-07-14 12:08:32 +0200
committerAnselm R. Garbe <garbeam@wmii.de>2006-07-14 12:08:32 +0200
commiteb756ee169ad0c94167ff41a9ab2712b348afe4f (patch)
tree8178d9656383549e553e4ac768e9808f41fcecd2 /client.c
parentimplemented dwm reading status text from stdin (diff)
downloaddwm-eb756ee169ad0c94167ff41a9ab2712b348afe4f.tar.gz
dwm-eb756ee169ad0c94167ff41a9ab2712b348afe4f.zip
made stdin reader more robust
Diffstat (limited to '')
-rw-r--r--client.c13
1 files changed, 9 insertions, 4 deletions
diff --git a/client.c b/client.c
index e0ab719..3aae7e0 100644
--- a/client.c
+++ b/client.c
@@ -404,8 +404,6 @@ manage(Window w, XWindowAttributes *wa)
404 c->next = *l; /* *l == nil */ 404 c->next = *l; /* *l == nil */
405 *l = c; 405 *l = c;
406 406
407 XMapRaised(dpy, c->win);
408 XMapRaised(dpy, c->title);
409 XGrabButton(dpy, Button1, Mod1Mask, c->win, False, ButtonPressMask, 407 XGrabButton(dpy, Button1, Mod1Mask, c->win, False, ButtonPressMask,
410 GrabModeAsync, GrabModeSync, None, None); 408 GrabModeAsync, GrabModeSync, None, None);
411 XGrabButton(dpy, Button2, Mod1Mask, c->win, False, ButtonPressMask, 409 XGrabButton(dpy, Button2, Mod1Mask, c->win, False, ButtonPressMask,
@@ -418,10 +416,17 @@ manage(Window w, XWindowAttributes *wa)
418 || ((c->maxw == c->minw) && (c->maxh == c->minh)); 416 || ((c->maxw == c->minw) && (c->maxh == c->minh));
419 417
420 arrange(NULL); 418 arrange(NULL);
421 if(c->tags[tsel]) 419 /* mapping the window now prevents flicker */
420 if(c->tags[tsel]) {
421 XMapRaised(dpy, c->win);
422 XMapRaised(dpy, c->title);
422 focus(c); 423 focus(c);
423 else 424 }
425 else {
424 ban_client(c); 426 ban_client(c);
427 XMapRaised(dpy, c->win);
428 XMapRaised(dpy, c->title);
429 }
425} 430}
426 431
427void 432void