Revert "remove unmapped attribute"

This reverts commit 10e324ad0b.
This commit is contained in:
Julien Danjou 2007-09-11 15:55:34 +02:00
parent 6085246aa8
commit 9223e8c0b8
3 changed files with 3 additions and 1 deletions

View File

@ -190,6 +190,7 @@ ban(Client * c)
XUnmapWindow(c->display, c->win); XUnmapWindow(c->display, c->win);
setclientstate(c, IconicState); setclientstate(c, IconicState);
c->isbanned = True; c->isbanned = True;
c->unmapped++;
} }
/** Configure client /** Configure client

View File

@ -16,6 +16,7 @@ struct Client
int rx, ry, rw, rh; /* revert geometry */ int rx, ry, rw, rh; /* revert geometry */
int basew, baseh, incw, inch, maxw, maxh, minw, minh; int basew, baseh, incw, inch, maxw, maxh, minw, minh;
int minax, maxax, minay, maxay; int minax, maxax, minay, maxay;
int unmapped;
long flags; long flags;
int border, oldborder; int border, oldborder;
Bool isbanned, isfixed, ismax, isfloating, wasfloating; Bool isbanned, isfixed, ismax, isfloating, wasfloating;

View File

@ -360,7 +360,7 @@ handle_event_unmapnotify(XEvent * e, awesome_config *awesomeconf)
Client *c; Client *c;
XUnmapEvent *ev = &e->xunmap; XUnmapEvent *ev = &e->xunmap;
if((c = getclient(ev->window)) && ev->event == DefaultRootWindow(e->xany.display) && (ev->send_event || !c->isbanned)) if((c = getclient(ev->window)) && ev->event == DefaultRootWindow(e->xany.display) && (ev->send_event || !c->unmapped--))
unmanage(c, &dc, WithdrawnState, awesomeconf); unmanage(c, &dc, WithdrawnState, awesomeconf);
} }