aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAnselm R.Garbe <arg@10ksloc.org>2006-08-14 16:37:55 +0200
committerAnselm R.Garbe <arg@10ksloc.org>2006-08-14 16:37:55 +0200
commit666fae97e67810089ffbddd019d655bc4f9f7838 (patch)
tree8be5b0250d63dc5894d33c497789b802364adc5f
parent823fb1118a30ae18a41650cf650df6b67861130b (diff)
downloaddwm-666fae97e67810089ffbddd019d655bc4f9f7838.tar.gz
added some flicker prevention
-rw-r--r--client.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/client.c b/client.c
index 8d5ea30..6a231b9 100644
--- a/client.c
+++ b/client.c
@@ -262,11 +262,13 @@ manage(Window w, XWindowAttributes *wa)
c->maxw == c->minw && c->maxh == c->minh);
settitle(c);
+ if(isvisible(c))
+ sel = c;
+ arrange(NULL);
XMapWindow(dpy, c->win);
XMapWindow(dpy, c->title);
if(isvisible(c))
focus(c);
- arrange(NULL);
}
void