]> Dogcows Code - chaz/openbox/blobdiff - plugins/focus.c
typo
[chaz/openbox] / plugins / focus.c
index db0a2b33c6621f03d290e146395c1c11eccf29e4..bb176a22d22ba980acfb0a2f7ba7d2eebab41a61 100644 (file)
@@ -19,7 +19,7 @@ void plugin_setup_config()
     config_set("focus.followMouse", Config_Bool, val);
     config_def_set(config_def_new("focus.focusNew", Config_Bool,
                                   "Focus New Windows",
-                                  "Focus windows when they first appear "));
+                                  "Focus windows when they first appear."));
     val.bool = TRUE;
     config_set("focus.focusNew", Config_Bool, val);
 /*
@@ -166,8 +166,9 @@ static void event(ObEvent *e, void *foo)
             --skip_enter;
         }
         else*/
-        if (e->data.x.client != NULL && client_normal(e->data.x.client))
-            client_focus(e->data.x.client);
+        if (follow_mouse.bool)
+            if (e->data.x.client != NULL && client_normal(e->data.x.client))
+                client_focus(e->data.x.client);
         break;
 
     default:
This page took 0.020034 seconds and 4 git commands to generate.