summaryrefslogtreecommitdiff
path: root/openbox/client.c
diff options
context:
space:
mode:
authorDana Jansens <danakj@orodu.net>2007-04-24 06:41:04 +0000
committerDana Jansens <danakj@orodu.net>2007-04-24 06:41:04 +0000
commitc6fe4f8d8f4bd462ff9b1b1344422d0115cd5ff3 (patch)
tree5deecaf1eb8fdf6bcae353f0965d5cb835e89c97 /openbox/client.c
parentad852b6b56e43bdd7dda1389f54051cf92c0fad9 (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.c3
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);