check for focus before unfocusing

This commit is contained in:
Dana Jansens 2003-04-08 06:31:25 +00:00
parent c99bb4a049
commit 63b0c5616f

View file

@ -312,7 +312,8 @@ void client_unmanage(Client *self)
} }
} }
client_unfocus(self); if (focus_client == self)
client_unfocus(self);
/* remove from its group */ /* remove from its group */
if (self->group) { if (self->group) {