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 */