check for focus before unfocusing
This commit is contained in:
parent
c99bb4a049
commit
63b0c5616f
1 changed files with 2 additions and 1 deletions
|
@ -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) {
|
||||||
|
|
Loading…
Reference in a new issue