]> Dogcows Code - chaz/openbox/commitdiff
use the client_set_focused function when getting FocusIn/Out events
authorDana Jansens <danakj@orodu.net>
Fri, 21 Mar 2003 10:24:24 +0000 (10:24 +0000)
committerDana Jansens <danakj@orodu.net>
Fri, 21 Mar 2003 10:24:24 +0000 (10:24 +0000)
openbox/event.c

index b5f24eb84731d053e0fc2dafdcba35228c9752ae..68615facf7cc5258ccf8bcf71087f5f28ed7604a 100644 (file)
@@ -319,22 +319,10 @@ static void event_handle_client(Client *client, XEvent *e)
      
     switch (e->type) {
     case FocusIn:
-        if (focus_client != client)
-            focus_set_client(client);
-
-       /* focus state can affect the stacking layer */
-       client_calc_layer(client);
-
-       engine_frame_adjust_focus(client->frame);
+        client_set_focused(client, TRUE);
        break;
     case FocusOut:
-       if (focus_client == client)
-           focus_set_client(NULL);
-
-       /* focus state can affect the stacking layer */
-       client_calc_layer(client);
-
-       engine_frame_adjust_focus(client->frame);
+        client_set_focused(client, FALSE);
        break;
     case ConfigureRequest:
        g_message("ConfigureRequest for window %lx", client->window);
This page took 0.02253 seconds and 4 git commands to generate.