diff options
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); |
