diff options
| author | Dana Jansens <danakj@orodu.net> | 2007-04-24 06:41:04 +0000 |
|---|---|---|
| committer | Dana Jansens <danakj@orodu.net> | 2007-04-24 06:41:04 +0000 |
| commit | c6fe4f8d8f4bd462ff9b1b1344422d0115cd5ff3 (patch) | |
| tree | 5deecaf1eb8fdf6bcae353f0965d5cb835e89c97 /openbox/client.c | |
| parent | ad852b6b56e43bdd7dda1389f54051cf92c0fad9 (diff) | |
focus_order_remove is called in a few places. move the check for unsetting focus_client into client_unmanage.
Diffstat (limited to 'openbox/client.c')
| -rw-r--r-- | openbox/client.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/openbox/client.c b/openbox/client.c index 5eeda998..d5e7f4ce 100644 --- a/openbox/client.c +++ b/openbox/client.c @@ -535,6 +535,9 @@ void client_unmanage(ObClient *self) /* update the focus lists */ focus_order_remove(self); + /* don't leave an invalid focus_client */ + if (self == focus_client) + focus_client = NULL; client_list = g_list_remove(client_list, self); stacking_remove(self); |
