]> Dogcows Code - chaz/openbox/blobdiff - plugins/focus.c
focus new windows
[chaz/openbox] / plugins / focus.c
index acad90569f1b422a428daac781a4d1a00392f4fe..9424a236d38f062c97a973762ed391cd418bcaec 100644 (file)
@@ -9,7 +9,7 @@
 /* config options */
 static gboolean follow_mouse = TRUE;
 static gboolean warp_on_desk_switch = FALSE;
-static gboolean focus_new = FALSE;
+static gboolean focus_new = TRUE;
 
 /*static int skip_enter = 0;*/
 
@@ -85,7 +85,7 @@ static void events(ObEvent *e, void *foo)
     case Event_Client_Unmapped:
         if (ob_state == State_Exiting) break;
 
-        if (e->data.c.client->focused)
+        if (client_focused(e->data.c.client))
             if (!follow_mouse || !focus_under_pointer())
                 focus_fallback(FALSE);
         break;
This page took 0.022061 seconds and 4 git commands to generate.