]> Dogcows Code - chaz/openbox/commitdiff
send unfocus events after focus events
authorDana Jansens <danakj@orodu.net>
Tue, 18 Mar 2003 08:41:50 +0000 (08:41 +0000)
committerDana Jansens <danakj@orodu.net>
Tue, 18 Mar 2003 08:41:50 +0000 (08:41 +0000)
openbox/focus.c

index 0674c8ff0e5c0a0b95705bb5d4060c72ddf18a23..f1273c77b02aa0f52c647316206889debbe2850e 100644 (file)
@@ -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);
+    }
 }
This page took 0.026525 seconds and 4 git commands to generate.