commit ec0ba6bd4a2d1499c44573c03e0557a9bb5c545b
parent 5ebb00dfec0b646637cfa83a38ec6cd6b88ea8f7
Author: Kris Maglione <jg@suckless.org>
Date: Thu, 5 Mar 2009 22:27:45 -0500
Set client windows withdrawn in destroy
Diffstat:
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/cmd/wmii/client.c b/cmd/wmii/client.c
@@ -286,6 +286,7 @@ client_destroy(Client *c) {
none = nil;
client_setviews(c, &none);
+ client_unmap(c, WithdrawnState);
refree(&c->tagre);
refree(&c->tagvre);
free(c->retags);
@@ -442,10 +443,9 @@ client_map(Client *c) {
void
client_unmap(Client *c, int state) {
- if(c->w.mapped) {
+ if(c->w.mapped)
unmapwin(&c->w);
- client_setstate(c, state);
- }
+ client_setstate(c, state);
}
int