JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
updated README
[dwm.git] / client.c
index caa523c..9407f0a 100644 (file)
--- a/client.c
+++ b/client.c
@@ -35,6 +35,10 @@ update_name(Client *c)
                }
        }
        XFree(name.value);
+       if(c == stack)
+               draw_bar();
+       else
+               draw_client(c);
 }
 
 void
@@ -66,6 +70,7 @@ manage(Window w, XWindowAttributes *wa)
        c->r[RFloat].height = wa->height;
        c->border = wa->border_width;
        XSetWindowBorderWidth(dpy, c->win, 0);
+       XSelectInput(dpy, c->win, StructureNotifyMask | PropertyChangeMask | EnterWindowMask);
        XGetTransientForHint(dpy, c->win, &c->trans);
        if(!XGetWMNormalHints(dpy, c->win, &c->size, &msize) || !c->size.flags)
                c->size.flags = PSize;
@@ -122,6 +127,8 @@ unmanage(Client *c)
        XSetErrorHandler(error_handler);
        XUngrabServer(dpy);
        flush_events(EnterWindowMask);
+       if(stack)
+               focus(stack);
 }
 
 
@@ -135,3 +142,10 @@ getclient(Window w)
        return NULL;
 }
 
+void
+draw_client(Client *c)
+{
+       
+
+
+}