remove unmapped attribute
This commit is contained in:
parent
9f56ade4e9
commit
10e324ad0b
1
client.c
1
client.c
|
@ -190,7 +190,6 @@ ban(Client * c)
|
|||
XUnmapWindow(c->display, c->win);
|
||||
setclientstate(c, IconicState);
|
||||
c->isbanned = True;
|
||||
c->unmapped++;
|
||||
}
|
||||
|
||||
/** Configure client
|
||||
|
|
1
client.h
1
client.h
|
@ -16,7 +16,6 @@ struct Client
|
|||
int rx, ry, rw, rh; /* revert geometry */
|
||||
int basew, baseh, incw, inch, maxw, maxh, minw, minh;
|
||||
int minax, maxax, minay, maxay;
|
||||
int unmapped;
|
||||
long flags;
|
||||
int border, oldborder;
|
||||
Bool isbanned, isfixed, ismax, isfloating, wasfloating;
|
||||
|
|
2
event.c
2
event.c
|
@ -360,7 +360,7 @@ handle_event_unmapnotify(XEvent * e, awesome_config *awesomeconf)
|
|||
Client *c;
|
||||
XUnmapEvent *ev = &e->xunmap;
|
||||
|
||||
if((c = getclient(ev->window)) && ev->event == DefaultRootWindow(e->xany.display) && (ev->send_event || !c->unmapped--))
|
||||
if((c = getclient(ev->window)) && ev->event == DefaultRootWindow(e->xany.display) && (ev->send_event || !c->isbanned))
|
||||
unmanage(c, &dc, WithdrawnState, awesomeconf);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue