From 002bf5e7e6e5b741c86d951ddbdee670f9158324 Mon Sep 17 00:00:00 2001 From: Dana Jansens Date: Tue, 18 Mar 2003 08:41:50 +0000 Subject: [PATCH] send unfocus events after focus events --- openbox/focus.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/openbox/focus.c b/openbox/focus.c index 0674c8ff..f1273c77 100644 --- a/openbox/focus.c +++ b/openbox/focus.c @@ -47,15 +47,14 @@ void focus_set_client(Client *client) XSetInputFocus(ob_display, focus_backup, RevertToNone, CurrentTime); } - if (focus_client != NULL) - dispatch_client(Event_Client_Unfocus, focus_client, 0, 0); - focus_client = client; /* set the NET_ACTIVE_WINDOW hint */ active = client ? client->window : None; PROP_SET32(ob_root, net_active_window, window, active); - if (focus_client != NULL) + if (focus_client != NULL) { dispatch_client(Event_Client_Focus, focus_client, 0, 0); + dispatch_client(Event_Client_Unfocus, focus_client, 0, 0); + } } -- 2.45.2