From c6fe4f8d8f4bd462ff9b1b1344422d0115cd5ff3 Mon Sep 17 00:00:00 2001 From: Dana Jansens Date: Tue, 24 Apr 2007 06:41:04 +0000 Subject: focus_order_remove is called in a few places. move the check for unsetting focus_client into client_unmanage. --- openbox/client.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'openbox/client.c') 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); -- cgit v1.2.3