]> Dogcows Code - chaz/openbox/blobdiff - openbox/client.c
don't set variables twice
[chaz/openbox] / openbox / client.c
index f55af2b8a67ee31431bad8d01fac05b744c21f83..585379ec802399cf93561e24e414578ca0aa990e 100644 (file)
@@ -494,14 +494,14 @@ void client_manage(Window window, ObPrompt *prompt)
                   activate ? "yes" : "no");
     if (activate) {
         gboolean raise = FALSE;
-        gboolean relative_focused = FALSE;
-        gboolean parent_focused = FALSE;
+        gboolean relative_focused;
+        gboolean parent_focused;
 
         parent_focused = (focus_client != NULL &&
                           client_search_focus_parent(self));
         relative_focused = (focus_client != NULL &&
-                            client_search_focus_tree_full(self) != NULL &&
-                            client_search_focus_group_full(self) != NULL);
+                            (client_search_focus_tree_full(self) != NULL ||
+                             client_search_focus_group_full(self) != NULL));
 
 
         /* This is focus stealing prevention */
This page took 0.029457 seconds and 4 git commands to generate.