JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
new colorscheme (16-bit compliant)
[dwm.git] / client.c
index 9dd08b1..c716625 100644 (file)
--- a/client.c
+++ b/client.c
@@ -1,7 +1,6 @@
 /* See LICENSE file for copyright and license details. */
 #include "dwm.h"
 #include <stdlib.h>
-#include <X11/Xatom.h>
 #include <X11/Xutil.h>
 
 /* static */
@@ -146,7 +145,7 @@ focus(Client *c) {
                grabbuttons(c, True);
        }
        sel = c;
-       drawstatus();
+       drawbar();
        if(!selscreen)
                return;
        if(c) {
@@ -230,6 +229,7 @@ manage(Window w, XWindowAttributes *wa) {
        XMoveResizeWindow(dpy, c->win, c->x, c->y, c->w, c->h); /* some windows require this */
        ban(c);
        XMapWindow(dpy, c->win);
+       setclientstate(c, NormalState);
        arrange();
 }