JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
added some flicker prevention
authorAnselm R.Garbe <arg@10ksloc.org>
Mon, 14 Aug 2006 14:37:55 +0000 (16:37 +0200)
committerAnselm R.Garbe <arg@10ksloc.org>
Mon, 14 Aug 2006 14:37:55 +0000 (16:37 +0200)
client.c

index 8d5ea30..6a231b9 100644 (file)
--- 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