JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
foo
[dwm.git] / client.c
index 85b1af8..b741a7e 100644 (file)
--- a/client.c
+++ b/client.c
@@ -226,6 +226,7 @@ manage(Window w, XWindowAttributes *wa) {
                c->isfloating = (rettrans == Success) || c->isfixed;
        attach(c);
        attachstack(c);
+       setclientstate(c, IconicState);
        c->isbanned = True;
        focus(c);
        lt->arrange();
@@ -310,6 +311,7 @@ void
 unban(Client *c) {
        if(!c->isbanned)
                return;
+       XMoveWindow(dpy, c->win, c->x, c->y); /* some windows require this */
        XMapWindow(dpy, c->win);
        setclientstate(c, NormalState);
        c->isbanned = False;